mysql_fetch_array() supplied argument is not a valid <--> ERROR

Discussion in 'MySQL' started by BreezeTR, May 26, 2007.

  1. #1
    QUERY :
    how can i correct it?
     
    BreezeTR, May 26, 2007 IP
  2. decepti0n

    decepti0n Peon

    Messages:
    519
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    from what I remember, that error will show up when you don't return any rows
     
    decepti0n, May 26, 2007 IP
  3. BreezeTR

    BreezeTR Well-Known Member

    Messages:
    115
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #3
    BreezeTR, May 26, 2007 IP
  4. DidierE

    DidierE Well-Known Member

    Messages:
    1,815
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    145
    #4
    Most of the time this is caused by a typo. Remember character case is extremely important when you work with mysql and php.

    So make sure the table "cep_oyunlar" exist in the database and it's not Cep_Oyunlar for example.

    Same with the "oyun_id" row.

    Check your typos and usually you'll find the stupid mistake :)
     
    DidierE, May 26, 2007 IP
  5. lui2603

    lui2603 Peon

    Messages:
    729
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I had this problem a while ago also.
    It is normally something simple like a case sensitive character...
    Last time it was because I forgot to add the user I created on cpanel to the database :D
     
    lui2603, May 26, 2007 IP
  6. BreezeTR

    BreezeTR Well-Known Member

    Messages:
    115
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #6
    thanks friends
    i found the problem, i created permissions between MySQL database and MySQL Username on cPanel
     
    BreezeTR, May 27, 2007 IP
  7. rajeev_seo

    rajeev_seo Peon

    Messages:
    211
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    dear nothing problem in this
    pls check your query and run it again when not solve then click that link for more informat
     
    rajeev_seo, Apr 23, 2011 IP