Here you go again…
<?php
$result = mysql_query("SELECT category FROM products GROUP BY category");
if (mysql_num_rows($result) > 0){
while ($row = mysql_fetch_array($result)){
$items[]=$row[0];
echo '';
}
}
?>
Forget about $items, it’s only purpose is to seed the products from the first category in the list. It could be used for other purposes.
Now, start working on your code and stop altering my code. Your not moving forward and frankly I’ve run out of patients. I hope someone else is willing to jump on this merry-go-round, I’m dizzy…