Petra,
this is what i used to generate a navigation based db categories (similar to previous post I answered you)
<?
//display category nav
$query = "select * from category order by category_id";
$result = MYSQL_QUERY($query);
$total_categories = MYSQL_NUMROWS($result);
for ($i=0; $i<$total_categories; $i++){
$category_id= mysql_result($result,$i,"category_id");
$cat_name = mysql_result($result,$i,"cat_name");
echo "<br><a href=\"category_page.php?category_id=$category_id\">$cat_name</a> ";
}
then now you need to create the category page 'category_page.php' where you should have a query like that:
$query = "select * from whatever_table where category_id = '$category_id' limit 0,10";
//this should give you the 10 first result found in that category
Hope that helps.
?>