PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi,
I'm doing a simple query and using a while to echo the results to a table and was wondering how i can set row1 to have say a red background and row2 to be blue. I know how to do the CSS bit just not the php code. In a nutshell i'd like all even number rows to be red all odds to be blue, any one know how i would code this? Here's what i've got so far:
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I think i'll give the php odd row idea a go. And if not at least i can have a search round for zebra tables. Would of neva thought of calling it that, i was searchin for stuff like CSS uery results and while CSS.
Ok, that is the last time I point to the thread instead of the exact post. You're Kieran, there are only two posts in that thread and for the life of me I cannot find the post I was looking at when I posted that reply .
I will keep looking and post when I find it. I know it is here. I am just not sure where now.