"; include('dbcon.php'); $sql = "SELECT * FROM ".$pre."kat"; $result = mysql_query($sql) OR die(mysql_error()); while($row = mysql_fetch_assoc($result)) { echo ""; $j++; if ($j==$max) {$j=0; echo "";} } mysql_free_result($result); mysql_close; echo "
KategorieBeschreibungEinträge
".$row['name']."".$row['beschr'].""; $anzahl = mysql_query("SELECT * FROM ".$pre."links WHERE ukat=".$row['nr']); $num_rows = mysql_num_rows($anzahl); if ($num_rows>0) echo ""; else echo ""; echo $num_rows; echo "


"; } else { include('dbcon.php'); $sql = "SELECT * FROM ".$pre."links WHERE ukat=".$kat; $result = mysql_query($sql) OR die(mysql_error()); echo "zurück zum Überblick
"; echo ""; while($row = mysql_fetch_assoc($result)) { echo ""; $j++; if ($j==$max) {$j=0; echo "";} } mysql_free_result($result); mysql_close; echo "
TitelBeschreibung
".$row['title']."".$row['beschr']."


"; } ?> Seite vorschlagen