structured project with folders

better min preview height
correct sort by creation date
This commit is contained in:
2020-06-07 11:37:50 +02:00
parent 75245a2cf6
commit 516949dc65
13 changed files with 42 additions and 24 deletions

View File

@ -8,7 +8,7 @@ if (isset($_POST['action'])) {
$action = $_POST['action'];
switch ($action) {
case "getMovies":
$query = "SELECT movie_id,movie_name FROM videos ORDER BY likes DESC, create_date ASC, movie_name ASC";
$query = "SELECT movie_id,movie_name FROM videos ORDER BY likes DESC, create_date DESC, movie_name ASC";
if (isset($_POST['tag'])) {
$tag = $_POST['tag'];
if ($_POST['tag'] != "all") {