Kelly H
2010-12-02 10:19:02 UTC
I want to make this code for mat with 4 products on first row and 4 products on the second and 4 on the third and so on.
as of right now using the code below it shows one on each row i want it to show 4 on row 1 and 4 on row two so on and so on.
How do i do this?
mysql_selectdb("*********",$link);
// Select records from the DB
$query = "SELECT * FROM Products WHERE home='1' ORDER BY Rand() ";
$result = mysql_query($query);
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
echo"
echo "

echo"
}