Re: printing results from mysql fetch array

From: Date: Thu, 25 Jul 2002 19:12:20 +0000
Subject: Re: printing results from mysql fetch array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109583@lists.php.net to get a copy of this message
Well yah.. I mean you can move the array pointer by simply looping through the array 16 times. But why not simply take care of this in your SELECT statement? "SELECT .. blah blah blah.. ORDER BY firstname DESC LIMIT 16, 1" Returns one row starting with the 16th row ordered by the firstname in descending order. -Kevin ----- Original Message ----- From: "Tyler Durdin" <linuxgeek23@hotmail.com> To: <php-general@lists.php.net> Sent: Thursday, July 25, 2002 1:01 PM Subject: [PHP] printing results from mysql fetch array > If I select all from my db how can I print the individual results? For > example, say i want to print record number 16 from the firstname column into > a table. How can i accomplish this? I have all of my db access coded and > have it selecting all from the db, but i want to print individual records > into my table. Can I set the records to variables and use something like > <?php echo {whatever would go here} ?> I am really lost here please help! > > > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#109583) next »