Back to Thermistor and Solar Cell by John Schimmel

<?php

include "dbconnect.php";

if (($_GET['temp'] != '') && ($_GET['solar'] != '')) {

	$sql = "INSERT INTO sensors (temp,solar) VALUES ('" . $_GET['temp'] . "','" . $_GET['solar'] . "')";
	mysql_query($sql);

}

if (mysql_affected_rows() == 1) {
	echo "temp value (" . $_GET['temp'] . ")";
	echo "\0";
} else {
	//echo "value not inserted for some reason.";
	echo "0";
	echo "\0";
}

end;
?>