more edl work
This commit is contained in:
parent
649e881b4b
commit
1b5b6329b4
2
edl.php
2
edl.php
@ -9,7 +9,7 @@ $_REQUEST = json_decode($jsonBody, true);
|
|||||||
if (isset($_REQUEST['media_id']) && $_REQUEST['media_id'] !== "") {
|
if (isset($_REQUEST['media_id']) && $_REQUEST['media_id'] !== "") {
|
||||||
error_log(print_r($_REQUEST, true));
|
error_log(print_r($_REQUEST, true));
|
||||||
$id = intval($_REQUEST['media_id']);
|
$id = intval($_REQUEST['media_id']);
|
||||||
$query = $db->prepare("SELECT * FROM media m JOIN media_edls me ON m.id = me.media_id WHERE m.id = :id");
|
$query = $db->prepare("SELECT m.*, me.id AS edl_id, me.media_id AS media_id, me.edl_name, me.edl_definition FROM media m JOIN media_edls me ON m.id = me.media_id WHERE m.id = :id");
|
||||||
$query->bindValue(':id', $id);
|
$query->bindValue(':id', $id);
|
||||||
$result = $query->execute();
|
$result = $query->execute();
|
||||||
$row = $result->fetchArray(SQLITE3_ASSOC);
|
$row = $result->fetchArray(SQLITE3_ASSOC);
|
||||||
|
Loading…
Reference in New Issue
Block a user