collect_list.php 608 B

1234567891011121314151617181920212223242526
  1. <?php
  2. //查询term字典
  3. require_once "../path.php";
  4. require_once "../public/_pdo.php";
  5. require_once '../public/function.php';
  6. require_once '../ucenter/function.php';
  7. if(isset($_GET["userid"])){
  8. PDO_Connect("sqlite:"._FILE_DB_USER_ARTICLE_);
  9. $userid=$_GET["userid"];
  10. $query = "SELECT * from collect where owner = ".$PDO->quote($userid)." and status <> 0 order by modify_time DESC";
  11. $Fetch = PDO_FetchAll($query);
  12. if($Fetch){
  13. /*
  14. */
  15. echo json_encode($Fetch, JSON_UNESCAPED_UNICODE);
  16. exit;
  17. }
  18. }
  19. echo json_encode(array(), JSON_UNESCAPED_UNICODE);
  20. ?>