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
837 B

<?php
error_reporting(0);
include 'DB.php';
try {
$conn=new DB();
if($conn){
$sql="SELECT * from objectivemanagementdetail where itemtype='效益' ";
$xiaoyi=$conn->getAll($sql);
$array['xiaoyi']=$xiaoyi;
//for ($x=0; $x<sizeof($result);$x++) {
// $date = date('Y-m-d'); //當前時間
// $firstday = date('Y-m-01', strtotime($date));
// $name=$result[$x]['name'];
// //查詢員工入職是否三個月內
// //查詢詳細數據
// $sqldang="select * from ranking where name='$name' order by id desc ";
// $detail=$conn->getAll($sqldang);
// $result[$x]['detail']= $detail;
//
//}
$sql2="SELECT * from objectivemanagementdetail where itemtype='台數' ";
$tai=$conn->getAll($sql2);
$array['tai']=$tai;
echo json_encode($array);
}
}catch (Exception $e) {
die($e->getMessage());
}
?>