Re: Table Output Question
| From: | Jeff Grossman | Date: | Tue, 15 Nov 2005 17:52:16 +0000 |
| Subject: | Re: Table Output Question | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-40671@lists.php.net to get a copy of this message | ||
Bastien Koert <bastien_k@hotmail.com> wrote:
> Simply put, you create a couple of css classes that make the row look the
> way you want and then
>
> while ($rows = mysql_fetch_array($result))
> {
> $color = ($counter % 2 ==0) ? "rowclass1" : "rowclass2" ;
>
> echo "<tr class='$color'><td>...";
>
> }
>
> Its essentially the same thing, just neater and lets you concentrate on the
> code for the table without the worry about the way the row looks
>
> Bastien
>
Thanks again for the information.
Jeff