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
* 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
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
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
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
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
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
7 matches
Mail list logo