Simply put, you create a couple of css classes that make the row look the
way you want and then
while ($rows = mysql_fetch_array($result))
{
$color = ($counter % 2 ==0) ? "rowclass1" : "rowclass2" ;
echo "...";
}
Its essentially the same thing, just neater and lets you concentrate on the
cod
Sorry, that's shorthand.. is the same as:
is the end tag..
On Monday 14 November 2005 6:26 pm, Jeff Grossman wrote:
> Micah Stevens <[EMAIL PROTECTED]> wrote:
> > You don't have to output two rows.. just do this:
> >
> > $color = "red"; // init first color.
> > while ($row = mysql_fetch_ass
Sorry if I sounded offended, I'm not. I was just curious because the advantage
wasn't obvious to me. I see your point now though. Thanks for the insight.
On Monday 14 November 2005 6:12 pm, Ajree wrote:
> Micah Stevens wrote:
> > I don't see what's more elegant about. They have a good point tha
Micah Stevens wrote:
I don't see what's more elegant about. They have a good point that you only
need to do one out of the two, but doing it in Javascript versus PHP only has
the advantage that it puts the processing load for that on the client
computer.
Am I missing something?
The second
I don't see what's more elegant about. They have a good point that you only
need to do one out of the two, but doing it in Javascript versus PHP only has
the advantage that it puts the processing load for that on the client
computer.
Am I missing something?
On Monday 14 November 2005 5:25 p