Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Posts
    462
    Thanks
    0
    Thanked 20 Times in 20 Posts

    fetch_array problems

    I've been using php mysql for a couple years and all of a sudden the 'mysql_fetch_array', 'mysql_fetch_assoc', 'extract' all seem to be throwing errors randomly. I fix one another crashes. What could cause that? They been working for years and just today everythings is goin' buggy for some reason.
    I checked and all queries are being pulled but my errors are stating ... expects param1 to be an array. And yet they are arrays.
    NO Limits!! DHCreationStation.com
    ------------------------------------------------------------
    Broken items wanted for tinkerin'! PostItNow@BrokenEquipment.com
    Global Complaint Dept.

  • #2
    Regular Coder
    Join Date
    Jun 2009
    Posts
    144
    Thanks
    3
    Thanked 20 Times in 20 Posts
    PHP version upgrade? When you say "fix it", what does that involve?

  • #3
    New to the CF scene
    Join Date
    Aug 2014
    Location
    Indaia, Dlhi
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts
    i think you may need to use the mysql_fetch_assoc() function to associate the column names with the array values returned as mysql_fetch_array() will merely enumerate the field names in the query order.

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,198
    Thanks
    80
    Thanked 4,453 Times in 4,418 Posts
    Elly: Try READING the posts. He wrote
    all of a sudden the 'mysql_fetch_array', 'mysql_fetch_assoc', 'extract' all seem to be throwing errors
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •