added a videocontainer where previews can be stored in - usefull for category page

This commit is contained in:
2020-06-07 21:42:01 +02:00
parent d72a7b2e3a
commit 836f5f342a
7 changed files with 139 additions and 115 deletions

View File

@ -16,21 +16,6 @@ if (isset($_POST['action'])) {
}
echo json_encode($rows);
break;
case "getRandomTagPreview":
$id = $_POST['id'];
$query = "SELECT thumbnail from videos
INNER JOIN video_tags vt on videos.movie_id = vt.video_id
WHERE tag_id='$id'
ORDER BY RAND()
LIMIT 1";
$result = $conn->query($query);
$r = mysqli_fetch_assoc($result);
echo $r['thumbnail'];
break;
}
}