lesson_list.php 328 B

12345678910111213
  1. <?php
  2. //
  3. require_once "../path.php";
  4. require_once "../public/_pdo.php";
  5. global $PDO;
  6. PDO_Connect("sqlite:"._FILE_DB_COURSE_);
  7. $query = "SELECT * from lesson where course_id = ? order by date DESC limit 0,200";
  8. $fAllLesson = PDO_FetchAll($query,array($_GET["id"]));
  9. echo json_encode($fAllLesson, JSON_UNESCAPED_UNICODE);
  10. ?>