Connecting Tech Pros Worldwide Forums | Help | Site Map

extract array from mysql

monomaniac21
Guest
 
Posts: n/a
#1: Aug 9 '06
hi all

i get an error when i try to extract from a mysql_fetch_array variable
it says: Warning: extract(): First argument should be an array in...

Is this not possible?


Andy Hassall
Guest
 
Posts: n/a
#2: Aug 9 '06

re: extract array from mysql


On 9 Aug 2006 08:36:02 -0700, "monomaniac21" <mcyi2mr3@googlemail.comwrote:
Quote:
>i get an error when i try to extract from a mysql_fetch_array variable
>it says: Warning: extract(): First argument should be an array in...
Then you haven't passed it an array? (mysql_fetch_array can return something
other than an array).
Quote:
>Is this not possible?
You probably also want to use mysql_fetch_assoc insteadn (unless you've set
the result_type parameter to MYSQL_ASSOC), because otherwise it may try to
create variables like $0, $1, $2.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Miguel Cruz
Guest
 
Posts: n/a
#3: Aug 9 '06

re: extract array from mysql


"monomaniac21" <mcyi2mr3@googlemail.comwrote:
Quote:
i get an error when i try to extract from a mysql_fetch_array variable
it says: Warning: extract(): First argument should be an array in...
>
Is this not possible?
It is possible. Please show some of your code.

miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu
Closed Thread