Skip to content

Commit 7787965

Browse files
authored
Fix sorting for vines
1 parent 3ca704e commit 7787965

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

timeline/graph.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
?>
1919
<?php
2020
// SQL query to select rows
21-
$sql = "SELECT * FROM vines";
21+
$sql = "SELECT * FROM vines ORDER BY id DESC";
2222
$result = $conn->query($sql);
2323

2424
if ($result->num_rows > 0) {

timeline/user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<?php
5353
// SQL query to select rows containing the searched word
5454
$cid = $_GET['id'];
55-
$sql = "SELECT * FROM vines WHERE uploaderId = '$cid'";
55+
$sql = "SELECT * FROM vines WHERE uploaderId = '$cid' ORDER BY id DESC";
5656
$result = $conn->query($sql);
5757

5858
if ($result->num_rows > 0) {

0 commit comments

Comments
 (0)