I've been using PHP and MySQL together nicely for some time now, but I haven't been able to lay my data out as I'd like to.
How does one create the alternating rows of colour as in this forum?
Cheers,
Stuart
I use something like the following in a table layout.
$color1 = '#FFFFFF'; // color 1 $color2 = '#DDDDDD'; // color 2 do { $cellbg=(($x%2)?$color1:$color2); printf("<tr bgcolor='$cellbg'><td>..... $x++;
}while (......