I have a layout on my table cells which I guess some people call a zebra layout. All the odd rows are say blue and all the even are blue. So say the first row blue, second red and so on... It's easy to do this in a simple table, but for my php page which shows the results do they all have to be odd? Of anyone can tell me a simple way of doing this...
Code:<tr valign="top" class="odd"> <td><?php echo $qry['FirstName']; ?></td> <td><?php echo $qry['LastName']; ?></td> <td><?php echo date('d/m/Y', strtotime($qry['DateOfBirth'])); ?></td> <td><?php echo($qry['loginDateTime']?date('d/m/Y H:i:s', strtotime($qry['loginDateTime'])):'N/A'); ?></td> <td><?php echo $qry['State'];?></td> <td><?php echo $q['Name'];?></td> </tr> <?php } } echo '</table>'; ?>




Bookmarks