Initial commit with updated Auth and media ignored
This commit is contained in:
0
ride/videos_driver/error_log
Normal file
0
ride/videos_driver/error_log
Normal file
14
ride/videos_driver/get.php
Executable file
14
ride/videos_driver/get.php
Executable file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../../connect.php';
|
||||
|
||||
$sql = "SELECT * FROM `videos`";
|
||||
$stmt = $con->prepare($sql);
|
||||
$stmt->execute();
|
||||
$data = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
if ($data) {
|
||||
jsonSuccess($data);
|
||||
} else {
|
||||
jsonError("No video records found");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user