Connecting Tech Pros Worldwide Help | Site Map

extract array from mysql

  #1  
Old August 9th, 2006, 04:25 PM
monomaniac21
Guest
 
Posts: n/a
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?

  #2  
Old August 9th, 2006, 08:15 PM
Andy Hassall
Guest
 
Posts: n/a

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
  #3  
Old August 9th, 2006, 08:35 PM
Miguel Cruz
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Read binary data from MySQL database Christoph Krammer answers 2 May 10th, 2007 03:35 PM
Extract BLOB from MySQL & save them anywhere in our pc Vinciz answers 2 February 28th, 2007 03:59 PM
Retrieving fields name from mysql Duderino82 answers 6 April 12th, 2006 10:35 PM
Need some help with multiple PHP/MySQL INSERT statements Jack answers 15 July 17th, 2005 06:51 AM