Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=21709
Postga havola
Besthakker [929] [off]
SnipeR, <?php
include_once $SERVER
['DOCUMENT_ROOT' ]. 'download/functions.php' ;
$cat = '4' ; //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 : 60px;
width : 60px;
border-radius:9em;
}</style><div class="phdr">So`nggi rasmlar</div>';
$zap = mysql_query
("SELECT * FROM `downfiles` WHERE `type`!= 1 AND `status` = 1 && `way` LIKE '" . $cat_inf
['way' ] . "%' ORDER BY `time` DESC LIMIT 5"
);
echo "<div class='list2'>" ;
while ($ok = mysql_fetch_array ($zap )) {
echo "<img class='ulty' src='/download/files/" . $ok
['way' ]. "' width='50' height='50'><br/><a href='/download/files/" .$ok [ 'way']."'>[Yuklab olish]</a><br/> " ;
}
?>
ishlasa bitta + sizdan
include_once $SERVER
['DOCUMENT_ROOT' ]. 'download/functions.php' ;
$cat = '4' ; //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 : 60px;
width : 60px;
border-radius:9em;
}</style><div class="phdr">So`nggi rasmlar</div>';
$zap = mysql_query
("SELECT * FROM `downfiles` WHERE `type`!= 1 AND `status` = 1 && `way` LIKE '" . $cat_inf
['way' ] . "%' ORDER BY `time` DESC LIMIT 5"
);
echo "<div class='list2'>" ;
while ($ok = mysql_fetch_array ($zap )) {
echo "<img class='ulty' src='/download/files/" . $ok
['way' ]. "' width='50' height='50'><br/><a href='/download/files/" .$ok [ 'way']."'>[Yuklab olish]</a><br/> " ;
}
?>
ishlasa bitta + sizdan