Announcement

Collapse
No announcement yet.

How to make alternating bg color?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to make alternating bg color?

    How do i do what vbulletin does in the showthread in a regular query?

  • #2
    If your talking about alternating colors for tables
    PHP Code:
    $bgcolor=($i 1)?'navy':'royalblue';
    echo 
    "<tr bgcolor=\"$bgcolor\"><td>some data</td></tr>";
    $i++; 

    Comment

    Related Topics

    Collapse

    Working...
    X