mysql_query sort

2002-11-29 Thread Wolfgang Gliese
Hallo, I want to sort my array (example: array[Ortslage, Strasse, Weg]) comming from a query. Following script shows Warning: sort() expects parameter 1 to be array, resource given in .../formular.php on line 36 var_dump($query) shows: resource(6) of type (mysql result) How should I do this?

Re: mysql_query sort

2002-11-29 Thread Roger Baklund
* Wolfgang Gliese I want to sort my array (example: array[Ortslage, Strasse, Weg]) comming from a query. A mysql query returns a 'resultset', not an 'array'. In PHP you can transform the resultset to an array, and this array can be sorted using a PHP function. However, this is a mysql list, and