Connect Arduino and phpMyadmin

This usually will put both in the same row.

$result = mysql_query("INSERT INTO temperatures (temp1,temp2) VALUES ($temp1,$temp2)");

I haven't tried that, so no guarantee, only a SWAG*.

*SWAG = Scientific Wild A## Guess.