Mavzu: JohnCms Da Bosh sahifaga chiqarish
750. dimauz (475) [off] | TXT | 66| 22 Dec 2018, 20:06
uZaFaRaP (22 Dec 2018, 18:33):
dimauz, #737 ni
uZaFaRaP, Xa chunarli
751. Besthakker (1772) [off] | TXT | 65| 23 Dec 2018, 07:04
dimauz, Dost yordamiz kerak...

Download dan rasm papka ochdim usha rasmlani bosh sahifaga chiqaradigan kod kerak yordam...
752. dimauz (475) [off] | TXT | 65| 23 Dec 2018, 08:42
Besthakker (23 Dec 2018, 07:04):
dimauz, Dost yordamiz kerak...

Download dan rasm papka ochdim usha rasmlani bosh sahifaga chiqaradigan kod kerak yordam...
Besthakker,

<?php

include_once $SERVER['DOCUMENT_ROOT'].'download/functions.php';





$cat ='10';   //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 
'<style>.ulty {

display : inline-block;

vertical-align: top;

height : 50px;

width : 50px;

border-radius:9em;

}</style><div class="phdr"><img src="/menu.png" alt="*"  width="17px" height="17px"/><b> Yangi rasmlar</b></div>'
;

$zap mysql_query("SELECT * FROM `downfiles` WHERE `type` != 1 AND `status` = 1 && `way` LIKE '" $cat_inf['way'] ."%' ORDER BY `time` DESC LIMIT 8");

 echo 
"<div class='list2'>";

while (
$ok mysql_fetch_array($zap)) { 

  

echo 
"<a href='/download/files/".$ok['way']."'><img class='ulty' src='/download/files/".$ok['way']."' width='50' height='50'></a> ";



 } 

  echo 
"</div>"

 }

?>



Raxmat aytdi (1): Besthakker,
753. Besthakker (1772) [off] | TXT | 64| 23 Dec 2018, 09:40
dimauz, Do'st shuni zip qilib bera olasmi
754. Asil4ek (1497) [off] | TXT | 64| 23 Dec 2018, 09:43
Besthakker, TXT - tugmasi ishlamoqda...
755. AkowBay (174) [off] | TXT | 62| 23 Dec 2018, 15:05
Besthakker, $cat ='10'; di o'zizdi id raqamizga o'zgartiring bo'lmasa rasm ko'rinmaydi
756. Besthakker (1772) [off] | TXT | 62| 23 Dec 2018, 17:01
Hammalarizga kottakon raxmat boldi tog'irladim dimauz do'stim raxmat sizga
Ijobiy (1): dimauz,
Ma'lumotlar
Mavzu id raqami: 434
Mavzuga oid xabarlar soni: 811 ta
So'ngi faollik vaqti: 25 Nov 2019, 12:40
Mavzuni ko'rishgan: 331 kishi
» txt shaklida yuklab olish
» Mavzudagi yangi xabarlardan xabardor bo'lishni rad etish
uzmasters.ru Onlayn 216 (0/216)
uzmasters.ru Forumga a'zo bo'lish
uzmasters.ru Forumdan qidirish
uzmasters.ru Bosh sahifa
Яндекс.Метрика UzMasterS.Ru