| 
 Posted by Dave on 06/19/95 11:49 
I'm trying to sort a list of mysql tables in reverse order.  The 
problem is the array displays in the same order regardless of the rsort 
addition. 
 
Can anyone see what I'm missing? 
 
 
 
Here's my code: 
 
<? 
$order_list_query = mysql_query("show tables like 'order_%'"); 
while ($order_list_array = mysql_fetch_array($order_list_query)){ 
        rsort($order_list_array); 
        echo $order_list_array[0] . "<br>"; 
} 
?> 
 
generates: 
 
order_06-03-2006-001 
order_06-03-2006-002 
order_06-04-2006-001 
order_06-05-2006-001 
order_06-05-2006-002 
order_06-05-2006-003 
order_06-05-2006-004
 
  
Navigation:
[Reply to this message] 
 |