You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
763 B
31 lines
763 B
<?php
|
|
error_reporting(0);
|
|
include 'DB.php';
|
|
|
|
try {
|
|
|
|
$conn=new DB();
|
|
//select utel,sum(ujine) as sumamount ,udate from xinnuser group by utel order by sum(ujine) desc limit 0,10;
|
|
if($conn){
|
|
$sql="select phbarea,sum(phbamount) as sumamount ,phbcreatetime from phb group by phbarea order by sum(phbamount) desc limit 0,10";
|
|
$result=$conn->getRowsArray($sql);
|
|
|
|
for ($x=0; $x<sizeof($result);$x++) {
|
|
|
|
$status[$x]['phbarea']=$result[$x]['phbarea'];
|
|
$status[$x]['sumamount']=$result[$x]['sumamount'];
|
|
$status[$x]['phbcreatetime']=$result[$x]['phbcreatetime'];
|
|
$status[$x]['x']= $x+1;
|
|
}
|
|
|
|
|
|
|
|
|
|
//$phbmobile=substr_replace($tel, '****', 3, 4);
|
|
echo json_encode($status);
|
|
}
|
|
}catch (Exception $e) {
|
|
die($e->getMessage());
|
|
}
|
|
?>
|
|
|
|
|