我想颠倒数组的顺序。
我的代码:
$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>';
}
输出:
<a href=member.php?u=name8>text</a>
<a href=member.php?u=name9>text</a>
<a href=member.php?u=name10>text</a>
我想扭转它:
<a href=member.php?u=name10>text</a>
<a href=member.php?u=name9>text</a>
<a href=member.php?u=name8>text</a>