[PHP] mysql output

2003-08-19 Thread Anthony Ritter
The following code snippet outputs a table from a mySQL database. In version 1, I am able to get alternating background cell colors. However, the output gives me the same post five times. In version 2, I am able to receive five separate posts - which is what I'm looking for - but I'd like to

Re: [PHP] mysql output

2003-08-19 Thread Curt Zirzow
* Thus wrote Anthony Ritter ([EMAIL PROTECTED]): The following code snippet outputs a table from a mySQL database. [snipped 255+ lines of code] That is way to much information, please be a brief in your code that you post. You'll find you'll get more people to analyze your code. Curt -- I

Re: [PHP] mysql output

2003-08-19 Thread CPT John W. Holmes
From: Curt Zirzow [EMAIL PROTECTED] * Thus wrote Anthony Ritter ([EMAIL PROTECTED]): The following code snippet outputs a table from a mySQL database. [snipped 255+ lines of code] That is way to much information, please be a brief in your code that you post. You'll find you'll get

Re: [PHP] mysql output

2003-08-19 Thread Anthony Ritter
You also asked a very, very common question, i.e. how to alternate colors in table rows... there are a ton of websites/tutorials out there that explain ways to do this. ---John Holmes... Apologies for the lengthy code. I've tried using a few

Re: [PHP] mysql output

2003-08-19 Thread John W. Holmes
Anthony Ritter wrote: You also asked a very, very common question, i.e. how to alternate colors in table rows... there are a ton of websites/tutorials out there that explain ways to do this. ---John Holmes... Apologies for the lengthy code. I've tried

Re: [PHP] mysql output

2003-08-19 Thread Anthony Ritter
Message - From: John W. Holmes [EMAIL PROTECTED] To: Anthony Ritter [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 9:59 PM Subject: Re: [PHP] mysql output Anthony Ritter wrote: You also asked a very, very common question, i.e. how to alternate colors in table

Re: [PHP] mysql output

2003-08-19 Thread John W. Holmes
Anthony Ritter wrote: I found the following and inserted it into my snippet for alternating backgoriund colors. However, I'm not sure I understand the logic. [snip] if ($alternate == 1) { $color = #eaf3da; $alternate = 2; } else { $color = #d5eae9; $alternate = 1; } It's just a long way of