Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 9th, 2006, 04:25 PM
monomaniac21
Guest
 
Posts: n/a
Default extract array from mysql

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
Default 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
Default 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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles