PHP Reverse the order of results from MySQL DB [duplicate]
问题 This question already has answers here : How to reverse order output of MySQL query (6 answers) Closed 10 days ago . I want to reverse the order of the array. My code: $result = mysql_query("SELECT * FROM notfi1 WHERE Own='" .$_GET['u']. "'"); while($row = mysql_fetch_array($result)) { echo 'link:<a href=member.php?u=' .$row['UserId']. '>text</a><br>'; } Output: <a href=member.php?u=name8>text</a> <a href=member.php?u=name9>text</a> <a href=member.php?u=name10>text</a> and I want to reverse