\n"; echo "$row[category]
\n"; echo "
\n"; echo "
$row[title] [$row[rating]]
\n"; echo "
$row[description]
 
\n"; $cat = $row[category]; while($row = mysql_fetch_array($sql_result)) { if ($cat != $row[category]) { $cat = $row[category]; echo "
\n"; echo "
\n"; echo "
\n"; echo "$row[category]
\n"; echo "
\n"; } echo "
$row[title] [$row[rating]]
\n"; echo "
$row[description]
 
\n"; } echo "
\n"; echo "

\n"; ?>