RE: [PHP] Get the lowest value out of different fields

From: Date: Wed, 03 Sep 2003 20:12:08 +0000
Subject: RE: [PHP] Get the lowest value out of different fields
Groups: php.general 
Request: Send a blank email to php-general+get-161590@lists.php.net to get a copy of this message
[snip] O.k. i dropped my lines below: As you can see, i'm selecting FRANKID 10 and i want to display the lowest value (2 rows are selected)! As you can see a stole a function from www.php.net/min, Now this is working fine for the first record!!! BUT how can i make the function loop through the whole result? [/snip] You answered your own question....wrap the thing in a while() loop while($foo = mysql_fetch_object($result3)){ ...wrappered items... }

« previous php.general (#161590) next »