so here is the code...
CODE
while($r=mysql_fetch_array($result))
{
for($i = 0; $i < $numofrows; $i++)
{
$r = mysql_fetch_array($result);
$id = $r[id];
if($i % 2)
{
echo "<div class=\"post2\">";
echo "<div class=\"date\"> <span class=\"month\">".$r[month]."</span><pan class=\"day\">".$r[day]."</span></div>";
echo "<p> <span class=\"title\">".$r[title]."</span>";
echo "<a href=\"?page=entries&id=".$id."\">View</a> :: Total Views - ".$r[views]." :: Author - $author :: Category - ".$r[cat]."</p>";
echo "</div>";
}
else
{
echo "<div class=\"post\">";
echo "<div class=\"date\"> <span class=\"month\">".$r[month]."</span><pan class=\"day\">".$r[day]."</span></div>";
echo "<p> <span class=\"title\">".$r[title]."</span>";
echo "<a href=\"?page=entries&id=".$id."\">View</a> :: Total Views - ".$r[views]." :: Author - $author :: <b>Category</b> - ".$r[cat]."</p>";
echo "</div>";;
}
}
}
{
for($i = 0; $i < $numofrows; $i++)
{
$r = mysql_fetch_array($result);
$id = $r[id];
if($i % 2)
{
echo "<div class=\"post2\">";
echo "<div class=\"date\"> <span class=\"month\">".$r[month]."</span><pan class=\"day\">".$r[day]."</span></div>";
echo "<p> <span class=\"title\">".$r[title]."</span>";
echo "<a href=\"?page=entries&id=".$id."\">View</a> :: Total Views - ".$r[views]." :: Author - $author :: Category - ".$r[cat]."</p>";
echo "</div>";
}
else
{
echo "<div class=\"post\">";
echo "<div class=\"date\"> <span class=\"month\">".$r[month]."</span><pan class=\"day\">".$r[day]."</span></div>";
echo "<p> <span class=\"title\">".$r[title]."</span>";
echo "<a href=\"?page=entries&id=".$id."\">View</a> :: Total Views - ".$r[views]." :: Author - $author :: <b>Category</b> - ".$r[cat]."</p>";
echo "</div>";;
}
}
}
so what do i need to change, add, take out, etc... any help greatly appreciated.