RE: [PHP] simple database extraction problem :(
| From: | Jack Dempsey | Date: | Fri, 04 May 2001 00:33:49 +0000 |
| Subject: | RE: [PHP] simple database extraction problem :( | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51352@lists.php.net to get a copy of this message | ||
You can keep a count of what row in the result you are and use that
accordingly to format your results...
-----Original Message-----
From: Sandeep Hundal [mailto:sandeep_wde@yahoo.com]
Sent: Thursday, May 03, 2001 7:10 PM
To: php
Subject: [PHP] simple database extraction problem :(
hi all!
just a quick thing. i've got loads of info in mysql, which i extract
and then use a "while ($r = mysql_fetch_array($result)) {" to output
the result.
the only thing is, because its a loop, all results look the same,
whereas i want the first row to be displayed differently than the
next 4.
any clues??
thanks!
/sunny
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net