...";
}
bastien
ps: a class css definition would be better here
From: Jeff Grossman <[EMAIL PROTECTED]>
To: php-db@lists.php.net
Subject: [PHP-DB] Table Output Question
Date: Mon, 14 Nov 2005 15:37:36 -0800
I have a table, where each line is the output of a query from a MyS
You don't have to output two rows.. just do this:
$color = "red"; // init first color.
while ($row = mysql_fetch_assoc($data)) {
if ($color == "red") {
$color = "blue";
} else {
$color = "red";
}
?>
..
I ha
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) {