[PHP-DB] select into array

2002-01-16 Thread George Lioumis
Hello everyone! I have the following table: |name |-- |n_id |n_name |ns_id --- I do a select: SELECT n_name from name and I want to put all selected n_name values into an array (say it names) How can this be done?? Thanx in advance.

Re: [PHP-DB] select into array

2002-01-16 Thread Miles Thompson
George, Whether you can select into an array directly depends on your database. In any case, PHP executes database queries and returns a handle or container which is accessed as an array. Here's the example from http://www.php.ca/manual/en/function.mysql-fetch-array.php ?php