0 order by $order_by $order"; break; case "share": $query = "select * from fileindex where user_id='$uid' AND title like '%$keyword%' and status>0 and share=1 order by $order_by $order"; break; case "recycle": $query = "select * from fileindex where user_id='$uid' AND title like '%$keyword%' and status=0 order by $order_by $order"; break; } $Fetch = PDO_FetchAll($query); for ($i = 0; $i < count($Fetch); $i++) { $Fetch[$i]["path"] = _get_para_path($Fetch[$i]["book"], $Fetch[$i]["paragraph"]); } echo json_encode($Fetch, JSON_UNESCAPED_UNICODE);