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? $query="select oart_bez from oart"; $result=safe_query($query); $result=sort($result); while($wert=mysql_fetch_row( $result )) { print "<OPTION VALUE=\"" . $wert[0] . "\" selected>" . $wert[0]; } greetings, Wolfgang Gliese --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php