INTERNET VA DASTURLASH
|
Skriptlar muhokamasi
|
Mavzu:
Johncms da script tuzamiz (sayt ochamiz)
Mavzu fayllari
(0)
fayllarni bosh sahifaga chiqaramiz :) [php]function size_convert($size){ $size = round($size / 1024, 2); if($size > 1024000){ $size = round($size / 1024000, 2).' Gb'; }elseif($size > 1024){ $size = round($size / 1024, 2).' mb'; }else{ $size = $size.' kb'; } return $size; } ///// Yangi Musiclar $mus = mysql_query("SELECT * FROM `downfiles` WHERE `way` LIKE '[b]music[/b]/%' ORDER BY `id` DESC LIMIT 20"); //20ni ozgartirish mumkin $musr = mysql_num_rows($mus); if ($musr != 0) { echo '
Original Musiqalat
'; while ($music = mysql_fetch_assoc($mus)) { $namee = explode('||||', $music['name']); echo '
' . str_replace('_', ' ', $namee[0]) . '
'; } } //// endi videolar $mus = mysql_query("SELECT * FROM `downfiles` WHERE `way` LIKE 'clip/%' ORDER BY `id` DESC LIMIT 20"); $musr = mysql_num_rows($mus); if ($musr != 0) { echo '
Yangi kliplar
';! while ($video = mysql_fetch_assoc($mus)) { $namee = explode('||||', $video['name']); echo '
' . str_replace('_', ' ', $namee[0]) . '
['.size_convert($video['size']).']
'; } } [/php] *BYE*
Yuklab olish
Onlayn 213 (0/213)
Forumga a'zo bo'lish
Forumdan qidirish
Bosh sahifa