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 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 advantage is being more web standards compliant. Taking > presentation out of the markup (clean table structure instead of <tr> > attributes mess). But it's not the place for this (non-php) discussion, > I just wanted to show another solution. 'More elegant' is only my > opinion and I didn't want to offend anyone :) > > Best regards, > Ajree > > > On Monday 14 November 2005 5:25 pm, Ajree wrote: > >>Take a look at this article on ALA: > >>http://www.alistapart.com/articles/zebratables/ > >> > >>It makes markup more elegant than repeated <tr bgcolor='...'>. > >> > >>-- > >>Ajree > >> > >>Jeff Grossman wrote: > >>>I have a table, where each line is the output of a query from a MySQL > >>>database. I do not use borders, so the page is a little difficult to > >>>read sometimes. Is it possible, or how do I, alternate the background > >>>color of each row when I output it? > >>> > >>>My code is like this: > >>> > >>>while (query) { > >>> <TR> > >>> <TD></TD> > >>> </TR> > >>>} > >>> > >>>I am not sure how to output two rows in the same while loop. > >>> > >>>Thanks for any help you can offer me. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php