| 12345678910111213141516171819202122232425 |
- <?php
- #句子的历史记录
- require_once "../path.php";
- require_once "../public/_pdo.php";
- require_once "../public/function.php";
- require_once "../ucenter/function.php";
- $respond['id']=$_GET["id"];
- $respond['status']=0;
- $respond['error']="";
- $respond['data']=array();
- PDO_Connect("sqlite:"._FILE_DB_USER_SENTENCE_HISTORAY_);
- $query = "SELECT sent_id, user_id, text, date, landmark FROM sent_historay WHERE sent_id = ? LIMIT 0,200";
- $fetch = PDO_FetchAll($query,array($_GET["id"]));
- $_userinfo = new UserInfo();
- foreach ($fetch as $key => $value) {
- # code...
- $fetch[$key]["userinfo"]=$_userinfo->getName($value["user_id"]);
- }
- $respond['data'] = $fetch;
- echo json_encode($respond, JSON_UNESCAPED_UNICODE);
- ?>
|