Re: [PHP] simple database extraction problem :(

2001-05-06 Thread Manuel Lemos

Hello Sandeep,

On 03-May-01 20:07:51, you wrote:

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. 

You may want to try this Query result table display class that you can
sub-class to customize details like row and cell colors and even
highlighting colors (the color that rows switch to when the mouse is over
them).

http://phpclasses.UpperDesign.com/browse.html/package/130


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
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] simple database extraction problem :(

2001-05-03 Thread Sandeep Hundal

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]




Re: [PHP] simple database extraction problem :(

2001-05-03 Thread Phillip Bow

Clue = Nested Loops
--
phill

Sandeep Hundal [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 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]




RE: [PHP] simple database extraction problem :(

2001-05-03 Thread Jack Dempsey

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]