Alternate Colors in Rows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings,

I am attempting to alternate the colors of the container DIV. Anyone know
how to do this? 

  <?php
  
    $study_title = stripslashes($study_title);
    $study_title = nl2br($study_title);
  
      while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
      extract ( $row );
  
      print "
            <div id=\"e_options_container\"
style=\"background-color:#333366;\">
                <div id=\"e_options\" style=\"width: 100px; \">$optone</div>
                <div id=\"e_options\" style=\"width: 50px; \"><a
href=\"$edit_item\">Edit</a></div>
                <div id=\"e_options\" style=\"width: 50px; \"><a
href=\"$delete_item\" onclick=\"return confirm('Are you sure you want to
delete?')\">Delete</a></div>
                <div id=\"e_options\" style=\"width: 250px;
\">$study_title</div>
                <div id=\"e_options\" style=\"width: 75px; \">$date</div>
            </div>";
  }
    ?>

Thank you very much,

--
Steve M.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux