The following lists 12 items from a fruits table.

$results = mysql_query("SELECT ID, date, appleprice, orangeprice, pearprice
FROM fruits");
while ($data = mysql_fetch_array($results))
{
?>
<p><?=$data["date"]?> - <?=$data["appleprice"]?> -
<?=$data["orangeprice"]?> - <?=$data["pearprice"]?></p>
<?
}

How would I modify the loop to display 4 items then a row of fruit images
then 4 more items then another row of different fruit images and then
finally finish the loop displaying the final 4 items?

Thanks

Craig ><>
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to