collect_list.php 547 B

123456789101112131415161718192021
  1. <?php
  2. #某用户的文章列表
  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(""._FILE_DB_USER_ARTICLE_);
  9. $userid=$_GET["userid"];
  10. $query = "SELECT * from collect where owner = ? and status <> 0 order by modify_time DESC";
  11. $Fetch = PDO_FetchAll($query,array($userid));
  12. echo json_encode($Fetch, JSON_UNESCAPED_UNICODE);
  13. exit;
  14. }
  15. echo json_encode(array(), JSON_UNESCAPED_UNICODE);
  16. ?>