[PHP-DB] Re: Alternating rows pulled from database

2001-11-30 Thread Lee Willmann
I guess it would since you're doing basically the same thing, just a different route. "Mrbaseball34" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > says... > > Here's what I did to get alternating row colors

[PHP-DB] Re: Alternating rows pulled from database

2001-11-29 Thread Lee Willmann
Here's what I did to get alternating row colors on a results page... I'm not sure that I follow what you are asking, but I hope this will help you: $color_one = "dd"; $color_two = "cc"; $row_count = 0; // SEND QUERY while (row = fetch array(result)) { $row_color = ($row_count % 2)

[PHP-DB] Re: Newbie Question

2001-11-21 Thread Lee Willmann
= mysql_fetch_array($query_result); $message = $query_row["message"]; echo "Message text:".nl2br($message); And that should do what you need. Lee Willmann "Steve Brett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...