extract array from mysql

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • monomaniac21

    extract array from mysql

    hi all

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

    Is this not possible?

  • Andy Hassall

    #2
    Re: extract array from mysql

    On 9 Aug 2006 08:36:02 -0700, "monomaniac 21" <mcyi2mr3@googl email.comwrote:
    >i get an error when i try to extract from a mysql_fetch_arr ay variable
    >it says: Warning: extract(): First argument should be an array in...
    Then you haven't passed it an array? (mysql_fetch_ar ray can return something
    other than an array).
    >Is this not possible?
    You probably also want to use mysql_fetch_ass oc 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.u k :: http://www.andyh.co.uk
    http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

    Comment

    • Miguel Cruz

      #3
      Re: extract array from mysql

      "monomaniac 21" <mcyi2mr3@googl email.comwrote:
      i get an error when i try to extract from a mysql_fetch_arr ay 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

      Comment

      Working...