1
Discussion & Troubleshooting / Considers quantity of photos
« on: June 08, 2012, 12:17:50 PM »
Has made such mod, but he considers quantity of photos in one folder if in a folder is subfolders he doesn't consider them. How to make so, what would consider photos in all subfolders folders?
$sql3 = "SELECT *
WHERE `cat_id` = 3;";
$resul3 = $site_db->query($sql3);
$ccoouunntt3 = mysql_num_rows($resul3);
$site_template->register_vars("ccoouunntt3", $ccoouunntt3);
$sql3 = "SELECT *
FROM ".IMAGES_TABLE."
WHERE `cat_id` = 3;";
$resul3 = $site_db->query($sql3);
$ccoouunntt3 = mysql_num_rows($resul3);
$site_template->register_vars("ccoouunntt3", $ccoouunntt3);