Unable to connect to the database server at this time.
" ); exit(); } if(!mysql_select_db("shop_temperature") ) { echo( "Unable to locate the test database at this time.
" ); exit(); } $result = mysql_query("INSERT INTO temperatures (temp1) VALUES ($temp1)"); $result = mysql_query("INSERT INTO temperatures (temp2) VALUES ($temp2)"); if(!$result) echo("Insert failed
"); else echo("Insert ok
"); mysql_close($dbcnx); echo('temp1 = ' . $temp1 . ' '); echo('temp2 = ' . $temp2 . ' '); ?>I tried this but it store the temp1 & temp2 in a different rows on database. You know how i can fix it? And how i can store and the time of the temp?