more edl work

This commit is contained in:
Sundog Jones 2024-09-17 09:11:46 -04:00
parent 7101ff6065
commit 649e881b4b

View File

@ -12,8 +12,8 @@ if (isset($_REQUEST['media_id']) && $_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->bindValue(':id', $id);
$result = $query->execute();
$rows = sqlite_num_rows($result);
error_log("EDL: found " . $rows . " rows for media id " . $_REQUEST['media_id']);
$row = $result->fetchArray(SQLITE3_ASSOC);
error_log(print_r($row, true));
if ($result) {
// record exists