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_que ry = mysql_query("sh ow tables like 'order_%'");
while ($order_list_ar ray = mysql_fetch_arr ay($order_list_ query)){
rsort($order_li st_array);
echo $order_list_arr ay[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
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_que ry = mysql_query("sh ow tables like 'order_%'");
while ($order_list_ar ray = mysql_fetch_arr ay($order_list_ query)){
rsort($order_li st_array);
echo $order_list_arr ay[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
Comment