I am trying to find the minimum value of the results of a query but apparently, I'm still miles away from that.
I've tried this:
Apparently, this doesn't work. I'm trying to put a the results of the query into an array then use the min function of PHP to find the minimum value but I still can't figure out how.PHP Code:
$query = "SELECT MIN(general) FROM score";
$result = mysql_query($query);
echo "Minimum score is: ".$result;
Can anyone help me?
Thanks in advance.