diff --git a/pages/wot/1.php b/pages/wot/1.php index 7dca51d..8eaab6b 100644 --- a/pages/wot/1.php +++ b/pages/wot/1.php @@ -19,74 +19,78 @@ $res=mysql_fetch_assoc(mysql_query("select sum(acount) as summe from countries")); $total1 =$res['summe']; + $locid=array_key_exists('locid',$_REQUEST)?intval($_REQUEST['locid']):0; + $regid=array_key_exists('regid',$_REQUEST)?intval($_REQUEST['regid']):0; + $ccid=array_key_exists('ccid',$_REQUEST)?intval($_REQUEST['ccid']):0; + echo "\n\n\n
\n"; - } elseif(intval($_GET['locid']) > 0){ + } elseif($locid > 0){ echo "\n\n\n\n\n\n\n
\n"; } $query = "select *, `users`.`id` as `id` from `users`,`notary` where `listme`='1' and - `ccid`='".intval($_GET['ccid'])."' and `regid`='".intval($_GET['regid'])."' and - `locid`='".intval($_GET['locid'])."' and `users`.`id`=`notary`.`to` + `ccid`='".$ccid."' and `regid`='".$regid."' and + `locid`='".$locid."' and `users`.`id`=`notary`.`to` group by `notary`.`to` HAVING SUM(`points`) >= 100 order by `points` desc"; $list = mysql_query($query); if(mysql_num_rows($list) > 0)