emus
01-14-2006, 08:46 AM
Hi everyone,
I have the following code
$best=mysql_query("SELECT MAX(grade) FROM students") or die(mysql_error());
echo $best;
Why does "echo $best" not give me an actual value but a resource id?
The MySQL syntax I got at the following site http://www.webdevelopersnotes.com/tutorials/sql/online_mysql_course_finding_the_minimum_and_maximu m_values.php3
I have the following code
$best=mysql_query("SELECT MAX(grade) FROM students") or die(mysql_error());
echo $best;
Why does "echo $best" not give me an actual value but a resource id?
The MySQL syntax I got at the following site http://www.webdevelopersnotes.com/tutorials/sql/online_mysql_course_finding_the_minimum_and_maximu m_values.php3