Re: URGET HELP : Logic Help - for first record do_this for each record after do_that

From: Date: Sat, 26 Oct 2002 07:10:14 +0000
Subject: Re: URGET HELP : Logic Help - for first record do_this for each record after do_that
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-22711@lists.php.net to get a copy of this message
On Saturday 26 October 2002 02:53, Aaron Wolski wrote: First, don't be so ***** lazy! You hijack an existing thread by replying to an existing post instead of starting a new one. AND you leave the original post hanging off the end of your message. > Basically I need to pull some records out of a database and for the > first record do_this logic and for each record after in the array > do_something_else logic. > > How would I approach this? Using mysql as an example: if ($row = mysql_fetch_row($result)) { // do stuff for first row } while ($row = mysql_fetch_row($result)) { // do stuff for remaining rows } -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* When you get your PH.D. will you get able to work at BURGER KING? */

« previous php.db (#22711) next »