Re: MySQL Results - display issue :S
| From: | Miles Thompson | Date: | Thu, 10 Jul 2003 01:43:12 +0000 |
| Subject: | Re: MySQL Results - display issue :S | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154660@lists.php.net to get a copy of this message | ||
Brenton,
The short answer: loops, counters and test
Across - <td> your content </td> <td> and so forth </td>
When to stop - a cell counter tested with mod operator
Alternating colour - a row counter tested with mod operator
That should get you pointed in the right direction. (If this is for a school project that might be too much info; what does your prof want?)
HTH - Miles Thompson
At 10:45 AM 7/10/2003 +0930, Brenton Dobell wrote:
I know im probibly getting irritating to most of you :P but i thought i may ask another thing that is on my mind! I have a sql query bringing back 200 rows for arguments sake, From this i would like an answer to 2 issues i have. 1) I know how to display it row after row going down :P duh of course :P, but i have seen sites where it goes across then down across then down ect ect like X -> X then next row ect. How is this done?? 2) How can i alternate the colours for each row?? row 1 eg light blue and the 2nd row dark blue then back to light blue ect ect. Thanks in advance Brenton Dobell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php