Hi there,
Heres the code:
function displayInfoCat(){
//Display example menu items.
$ID = $_GET['cat'];
if($ID == ""){
$ID = 1;
}
$cat = getInfoCat($ID);
foreach ($cat as $row){
echo '<li><a href="index.php?cat=' . $ID . '&example=' . $row['ID'] . '">' . $row['title'] . '</a></li>';
}
}
Now the problem is I would always like to have 5 list items but sometimes there are only 3 results from the database.
Hope you get what I mean. Its hard to explain.
Any help much appreciated.