php-db | 2004071
Date: 07/13/04
- Next message: Hutchins, Richard: "RE: [PHP-DB] Getting a result from MAX() query"
- Previous message: wuffo: "Re: [PHP-DB] endless loop / running as a service?"
- Next in thread: Hutchins, Richard: "RE: [PHP-DB] Getting a result from MAX() query"
- Maybe reply: Hutchins, Richard: "RE: [PHP-DB] Getting a result from MAX() query"
- Maybe reply: Dylan Barber: "RE: [PHP-DB] Getting a result from MAX() query"
- Reply: Doug Thompson: "Re: [PHP-DB] Getting a result from MAX() query"
- Reply: John W. Holmes: "Re: [PHP-DB] Getting a result from MAX() query"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Hutchins, Richard: "RE: [PHP-DB] Getting a result from MAX() query"
- Previous message: wuffo: "Re: [PHP-DB] endless loop / running as a service?"
- Next in thread: Hutchins, Richard: "RE: [PHP-DB] Getting a result from MAX() query"
- Maybe reply: Hutchins, Richard: "RE: [PHP-DB] Getting a result from MAX() query"
- Maybe reply: Dylan Barber: "RE: [PHP-DB] Getting a result from MAX() query"
- Reply: Doug Thompson: "Re: [PHP-DB] Getting a result from MAX() query"
- Reply: John W. Holmes: "Re: [PHP-DB] Getting a result from MAX() query"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

