>
> > Can someone please help me with the code?
>
>$cols = array('#ff','#00ff00');
>$i = 0;
>while(your_loop_to_output_each_row) {
> echo '$row_data';
>}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
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 code?
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(your_loop_to_output_each_
> 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 '$row_data';
4 matches
Mail list logo