Forum Moderators: coopster
$query = $DB->query("SELECT id, title FROM gallery_cat ORDER BY `id` DESC");
$cat = $DB->fetch_row($query);
$idcat = $cat['id'];
$queryn = $DB->query( "SELECT id, title, image, id_cat FROM gallery WHERE id_cat='$idcat' ORDER BY id DESC");
I want to list like this:
CATEGORY 1
image1 - image2 - image3 - image4 - image5
CATEGORY 2
image1 - image2 - image3 - image4 - image5
CATEGORY 3
image1 - image2 - image3 - image4 - image5
ect... by 5 result foreach category.
Any help?