×

Malika(27)


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 "
";
while ($ok = mysql_fetch_array($zap)) {

echo " ";

}
echo "
";
}
yordam kerak bo'lsa aloqa Watsapp viber +992880583867
Категория: PHP скрипты и уроки | Добавил: osa (26.05.2016)
Просмотров: 1379 | Рейтинг: 1.0/4
home-page--v1 messaging- store tasks--v1