Fix sorting for vines
This commit is contained in:
parent
3ca704e08a
commit
77879656e1
2 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ header('Content-Type: application/json');
|
|||
?>
|
||||
<?php
|
||||
// SQL query to select rows
|
||||
$sql = "SELECT * FROM vines";
|
||||
$sql = "SELECT * FROM vines ORDER BY id DESC";
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ header('Content-Type: application/json');
|
|||
<?php
|
||||
// SQL query to select rows containing the searched word
|
||||
$cid = $_GET['id'];
|
||||
$sql = "SELECT * FROM vines WHERE uploaderId = '$cid'";
|
||||
$sql = "SELECT * FROM vines WHERE uploaderId = '$cid' ORDER BY id DESC";
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue