Re: Alternating Table Rows, Part Deux..
| From: | Glenn Sieb | Date: | Fri, 10 May 2002 22:15:21 +0000 |
| Subject: | Re: Alternating Table Rows, Part Deux.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97028@lists.php.net to get a copy of this message | ||
Thanks! I'll play with this!!! :)
Glenn
On 05:11 PM 5/10/2002 -0500, Shaun Thomas wrote:
This could use a few tweaks. First off, putting mysql_num_rows in the actual for loop executes it every iteration. Bad. Second, consider giving your code some readability by returning an associative array. You also duplicate your if statements for company name. You can also rotate your column in the same IF statement to rotate the color. Try this (I'll assume column names...):--- Glenn E. Sieb, System Administrator Lumeta Corp. mailto:ges@lumeta.com +1 732 357-3514 (V) +1 732 564-0731 (Fax)