You are here: struggling with rsort « PHP Programming Language « IT news, forums, messages
struggling with rsort

Posted by Dave on 11/06/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация