Hi
I am having some problems atm, i am trying to get the following php code to go 4 across and then i want to use $i - $i++ to make it loop down. But when i try to make it go 4 across i get a problem the same result is shown 4 across and then another result which is the same across.
Here is my code:
How would i make it go 4 across which will get diffrent results instead of the same?PHP Code:<?php
l_display = '3';
$result = mysql_query("SELECT * FROM media ORDER BY Id DESC, RAND() LIMIT $l_display");
while($row = mysql_fetch_array($result))
{
echo '<a href="view.php?id='.$row['Id'].'">';
echo '<img src="img/'.$row['Img'].'" border="0" width="142" height="100"><br /><b><strong>';
echo $row['Title'];
echo "</a><br /></strong></b>";
echo $row['Description'];
echo "<br /><small>Submitted: ";
echo $row['Time'];
echo "</small><br />";
echo '<td>';
}
?>




Bookmarks