$num_res_temp = mysql_num_rows($result);
if (!$num_res_temp) { echo "The error is: ".mysql_error(); }