منتديات المجاوشي

منتديات المجاوشي (http://www.vb.mjawshy.net/index.php)
-   Arabic Rss (http://www.vb.mjawshy.net/forumdisplay.php?f=41)
-   -   [مشكلة] نتائج صحيحة واحيانا خاطئة (http://www.vb.mjawshy.net/showthread.php?t=373826)

RSS 08-26-2013 12:06 PM

[مشكلة] نتائج صحيحة واحيانا خاطئة
 
رمز PHP:
$a1 = $_GET['txt_type'];
$a2 = $_GET['choose1'];
$a3 = $_GET['choose2'];
$a4 = $_GET['price1'];
$a5 = $_GET['price2'];
@extract(mysql_fetch_array(mysql_query("select count(*) as co from `units` where `price` BETWEEN '$a4' and '$a5' and `citye` like '$a1' and `type1e` like '$a2' and `type2e` like '$a3' ")));
if(isset($_GET['start'])){


$start =$_GET['start'];
}else{$start=0;}
$limit =12;
$total =$co;
$num_page =ceil($total /$limit);



$data = mysql_query("select * from `units` where `price` BETWEEN '$a4' and '$a5' and `citye` like '$a1' and `type1e` like '$a2' and `type2e` like '$a3' limit $start ,$limit ") or die (mysql_error());

$num = mysql_num_rows($data);

if ($num






</p>

  • </p>























<div>


الساعة الآن 02:41 PM

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd. منتديات بلاك بيري mjawshy.net
المجاوشي للتقنية المتقدمة