ҳ̸Ҳ̸ҳ Rabiza Ekel ҳ̸Ҳ̸ҳ
:
18.117.135.132
:
47.103.87.29 / bstest.wagas.com.cn
:
Linux Wagas-WebServer 3.10.0-1160.11.1.el7.x86_64 #1 SMP Fri Dec 18 16:34:56 UTC 2020 x86_64
:
/
usr
/
html
/
www
/
inc
/
Upload File:
files >> /usr/html/www/inc/function.php
<?php function getStore($where, $limit) { global $pdo; // 查询所有门店 $sql1 = "SELECT * FROM store_msg where $where"; $posarray1 = $pdo->prepare($sql1); $posarray1->execute(); $posarray1=$posarray1->fetchAll(PDO::FETCH_ASSOC); $sql = "SELECT * FROM store_msg where $where order by id desc $limit"; $posarray = $pdo->prepare($sql); $posarray->execute(); $posarray=$posarray->fetchAll(PDO::FETCH_ASSOC); //$count = ceil(count($posarray1)/8); $count = count($posarray1); return ['res'=>0, 'posarray'=>$posarray, 'count'=>$count]; } function getAjaxStore($where, $limit) { global $pdo; // 查询所有门店 $sql1 = "SELECT * FROM store_msg where $where"; $posarray1 = $pdo->prepare($sql1); $posarray1->execute(); $posarray1=$posarray1->fetchAll(PDO::FETCH_ASSOC); $sql = "SELECT * FROM store_msg where $where order by id desc $limit"; $posarray = $pdo->prepare($sql); $posarray->execute(); $posarray=$posarray->fetchAll(PDO::FETCH_ASSOC); //$count = ceil(count($posarray1)/8); $count = count($posarray1); //var_dump($posarray);die; echo json_encode(['res'=>0, 'posarray'=>$posarray, 'count'=>$count], 320);die; }
ҳ̸Ҳ̸ҳ Rabiza Ekel ҳ̸Ҳ̸ҳ