Getting a result from MAX() query

From: Date: Tue, 13 Jul 2004 12:56:49 +0000
Subject: Getting a result from MAX() query
Groups: php.db 
Request: Send a blank email to php-db+get-35211@lists.php.net to get a copy of this message
Would somebody be kind enough to explain why this query produces a false result $latest=mysql_query("SELECT MAX(fee_recd) FROM members",$connectup)or die ("Query failed:<br>$latest<br>Error: " . mysql_error()); but this one doesn't $latest=mysql_query("SELECT fee_recd FROM members ORDER BY fee_recd DESC LIMIT 1",$connectup)or die ("Query failed:<br>$latest<br>Error: " . mysql_error()); Louise

« previous php.db (#35211) next »