array_reverse

From: Date: Sat, 22 Jun 2002 17:08:14 +0000
Subject: array_reverse
Groups: php.general 
Request: Send a blank email to php-general+get-103403@lists.php.net to get a copy of this message
I have problem with array_reverse. I just want to call info from my MySQL / db / table / and display the info in reverse. here is a sample of the code: <HTML> <?php  $db = mysql_connect("localhost", "root", "");  mysql_select_db("learndb",$db);  $result = mysql_ query("SELECT * FROM personnel",$ db);  echo "<TABLE BORDER=2>";  echo"<TR><TD><B>Full Name</B><TD><B>Nick Name</B><TD><B>Options</B></TR>";  while($myrow = mysql_fetch_array($result))  {  echo "<TR><TD>".$myrow["firstname"]." ".$myrow["lastname"]."<TD>".$myrow["nick"];  echo "<TD><a href=\"view.php?id=".$myrow[id]."\">View</a>";  }  echo "</TABLE>";  ?>  </HTML> This would echo info by the order of the "id". Help? Alexander McLean III Designer / Developer / Illustrator AM3 Design am3design.com alexander@am3design.com

« previous php.general (#103403) next »