ok
Direktori : /home2/selectio/www/lilyexpresslive/software/admin/ |
Current File : /home2/selectio/www/lilyexpresslive/software/admin/api-error-log-list.php |
<?php require_once('inc/config.php'); $statement = $pdo->prepare("select * from error_log_report where status=1 order by id desc"); $statement->execute(); $query = $statement->fetchAll(PDO::FETCH_ASSOC); $totalFiltered = $statement->rowCount(); $response=array(); if($totalFiltered>0) { $response=$query; } $datas[] = array('status'=>$response,'count'=>$totalFiltered,); echo json_encode($datas); ?>