Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=19320
Postga havola
uddaburon [94] [off]
Clubmix,
<?php if($type == 0){ $total = mysql_result(mysql_query("SELECT COUNT(*) FROM `downfiles` WHERE MATCH (`desc`) AGAINST ('" . mysql_real_escape_string($search) . "')"), 0); $arr = mysql_query("SELECT * FROM `downfiles` WHERE MATCH (`desc`) AGAINST ('" . mysql_real_escape_string($search) . "') LIMIT ".$start.", ".$kmess); }else{ $total = mysql_result(mysql_query("SELECT COUNT(*) FROM `downfiles` WHERE `name` LIKE '%" . mysql_real_escape_string($search) . "%'"), 0); $arr = mysql_query("SELECT * FROM `downfiles` WHERE `name` LIKE '%" . mysql_real_escape_string($search) . "%' LIMIT ".$start.", ".$kmess); } } echo'<form action="/download/search.php?" method="post"> <div class="gmenu" style="text-align: center"><input type="text" name="query" size="25" placeholder="" value="" /> <input type="submit" name="submit" value="поиск!"/></form>'; echo '</div>'; ?>