Menu
Hello, I´m trying to get the highest value of a column from a table, I´m doing:
$sql = “SELECT MAX(quant) FROM distrib”;
$maxProc = mysql_query($sql) or die(“Error”);
echo “MaxProc=”.$maxProc;
and the result I´m getting is:
MaxProc=Resource id #15
When I was supposed to get: MaxProc=20, which is the highest value of the field quant.
Can someone tell me what I´m doing wrong here? Thanks.