Hello friends.
I put the output of the database query in a table. It works fine. Now I have a need to
make the alternate rows of a different color.
Can someone please help me with the code?
Thanks
Denis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I put the output of the database query in a table. It works fine. Now I have a need
to make the alternate rows of a different color.
Can someone please help me with the code?
$cols = array('#ff','#00ff00');
$i = 0;
while(your_loop_to_output_each_row) {
echo 'tr
At 09:05 17-1-2003, you wrote:
I put the output of the database query in a table. It works fine. Now I
have a need to make the alternate rows of a different color.
Can someone please help me with the code?
$cols = array('#ff','#00ff00');
$i = 0;
while($row=mysql...) {
$color=($color=='red' ? 'blue' : 'red');
echo ...
}
Denis L. Menezes wrote:
Hello friends.
I put the output of the database query in a table. It works fine. Now I have a need to make the alternate rows of a different color.
Can someone please help me with the
?php
$bgcolor = ($i % 2 == 0) ? BGCOLOR='#E3E3E3' : ;
?
TR?=$bgcolor?
Can someone please help me with the code?
$cols = array('#ff','#00ff00');
$i = 0;
while(your_loop_to_output_each_row) {
echo 'tr
5 matches
Mail list logo