Rasmlarni bosh sahifaga chiqarish
include_once $SERVER['DOCUMENT_ROOT'].'download/functions.php'; $cat = '11'; //Rasm Kategoriya id`si $cat_inf = mysql_query("SELECT * FROM `downpath` WHERE `id` = '" . $cat . "' LIMIT 1"); if(mysql_num_rows($cat_inf)){ $cat_inf = mysql_fetch_assoc($cat_inf); }else{ $cat_inf = array('way' => ''); } $total = mysql_result(mysql_query("SELECT COUNT(*) FROM `downfiles` WHERE `type` != 1 AND `status` = 1 && `way` LIKE '" . $cat_inf['way'] ."%'"), 0); if ($total) { echo ' So`nggi rasmlar '; $zap = mysql_query("SELECT * FROM `downfiles` WHERE `type` != 1 AND `status` = 1 && `way` LIKE '" . $cat_inf['way'] ."%' ORDER BY `time` DESC LIMIT 5"); echo ""; } yordam kerak bo'lsa aloqa Watsapp viber +992880583867 | |
| |
Просмотров: 1379 | |