#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2004
    Posts
    186
    Rep Power
    0

    supplied argument is not a valid MySQL result resource (Was: Got a error)


    Ok heres what it saids

    Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/skylar/public_html/beta/includes/sql_layer.php on line 286

    and heres whats on 286

    PHP Code:
    $row mysql_fetch_row($res); 
    I dont get it
  2. #2
  3. Kung-fu Kitty
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2004
    Posts
    349
    Rep Power
    20
    It means $res isn't valid.

    That could mean you did not get a result (didn't need one), or more likely, that you are not properly connected to the database.

    Can you easily check your connections? Do that first.
    If your question has been answered, please finish out your thread with a post on what worked. It helps future people searching for answers and doesn't leave those helping you wondering.

    Did I help? Consider adding to my reputation (Click on the above).
    You ended that sentence with a preposition!
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2004
    Posts
    186
    Rep Power
    0

    Arrow sorry


    I know you dont liek this but heres the whole page

    ok and I have to give you a link to it all i dont know crap about php. so heres the page www.energy-b.com/php.html
  6. #4
  7. Kung-fu Kitty
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2004
    Posts
    349
    Rep Power
    20
    Looks like you need to uncomment the type of database you are using.
    It looks like they are all still commented out, so you are definately not connecting.
    For instance, if you are using MySQL, you would uncomment this line:
    /* $dbtype = "MySQL"; */
    to be
    $dbtype = "MySQL";
  8. #5
  9. (retired)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2003
    Location
    The Laboratory
    Posts
    10,054
    Rep Power
    1391
    Punisher15 / nrg-Athena: USE A DESCRIPTIVE THREAD TITLE. You've been told this MANY times.

    --Simon
    Last edited by SimonGreenhill; June 25th, 2005 at 01:17 AM.
  10. #6
  11. mod_dev_shed
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    14,800
    Rep Power
    1104
    Please see #10 in FAQs.
  12. #7
  13. Weirdo
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2004
    Location
    /dev/null
    Posts
    656
    Rep Power
    22
    So you have an error in phpNuke. Why not ask on their support forums? That's what they are for after all. Or you might consider properly reading the installation guide.
    Boss: "We found a bug in your code!"
    Programmer: "That's no bug, that's just an undocumented feature!"

    is a nice way to show appreciation if my suggestion was helpful.

    Scriptrequests are not appreciated anywhere. Show input. Do some research. Explain the problem. Post relevant code only.

IMN logo majestic logo threadwatch logo seochat tools logo