I do display it futher down in the code.
Well when i have this:
$show_photos_query = "SELECT * FROM photos_cat WHERE id = '$photoscat_id'";
$show_photos_result = mysql_query($show_photos_query) or die (mysql_error());
$row = mysql_fetch_array($show_photos_result);
$count_query = "SELECT COUNT(*) FROM photos WHERE category = '$photoscat_id'";
$count_result = mysql_query($count_query) or die (mysql_error());
nothing shows. but if i remove the last:
$count_result = mysql_query($count_query) or die (mysql_error());
then everything shows as normal. but i want to use the second sql query to know how many photos i have so i can do. Images: 7 (for example).