mysql_fetch_array(): supplied argument is not a valid MySQL result resource

Discussion in 'MySQL' started by Jack120, Feb 24, 2008.

  1. #1
    Well I am currently having problems with the following code.
    If the User is an Admin or Senior DJ, it displays the requests. But if the rank is a normal DJ, I get the following error.
    The code is below and I have put line 122 in red.
    Thanks.
     
    Jack120, Feb 24, 2008 IP
  2. maiahost

    maiahost Guest

    Messages:
    664
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It's a problem with the query not the fetch command. Why don't you echo it first and then copy-paste it in phpmyadmin to see where the problem is or use an error echo ?
     
    maiahost, Feb 24, 2008 IP
  3. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #3
    Is the results an array? How many orderid's are there? Try a check for the array.
     
    RectangleMan, Feb 25, 2008 IP