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:[EMAIL PROTECTED]]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]