
07-09-2007
|
| Administrator
Join Date: Jun 2007
Posts: 3,729
BRL$: 34,436.70 Thanks: 0
Thanked 6 Times in 6 Posts
Rep Power: 405 | | Alternating div background colors. Hi I'm trying to alternate div background colors and it doesn't seem to be working. Code: --------- // Loop to display the correct amount. while($row = mysql_fetch_array($result)) { // Get the timestamp and format it $date = date("F d, Y - g:i A", $row['timestamp']); // Store required information from the database // in variables for use. $title = stripslashes($row['title']); $entry = stripslashes($row['entry']); $sourcename = stripslashes($row['sourcename']); $sourceurl = stripslashes($row['sourceurl']); $poster = stripslashes($row['poster']); $id = stripslashes($row['id']); $views = stripslashes($row['views']); // Set the number of characters to be shown // for the short version of an article. $shortentry = substr($entry,0,620); $i = 0; if ($i = 0) { $i++; ?>
--------- To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. | |
__________________ █ High Quality To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ Powerful To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
To receive latest updates about BRL Forums, Subscribe to Latest Updates Thread.
| | | |