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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy help on php +MySQL

    Hello all expert,

    I am new to php and MySQL. Couple days ago, I opened an account with a freewebspace provider which support PHP4 and MySQL. I have also downloaded a PHP guestbook from a site and tried to install it with the following procedures.

    1,By using phpMyAdmin, I created a table in my Database.
    2, I configured the guestbook following the guideline, and uploaded it to the site.

    but when I open the guestbook, the following Warning shown on the page.

    Warning: Supplied argument is not a valid MySQL result resource in /users/coolfreepage.com/enoch/guestbook/E-Guest_show.php on line 37.

    and also on line 58,61,64 and 222.
    I've checked the script and the problem is probably about the code "mysql_num_rows"(the first 4 lines) and "mysql_fetch_object"(line 222)

    can someone tell me what is going on and how I can fix that?

  • #2
    mat
    mat is offline
    Regular Coder
    Join Date
    Jul 2002
    Posts
    199
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can you post more code?


    mat,

  • #3
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I would guess that your mysql connection isn't valid, check the config files for the guestbook and make sure the host, username and password for the mysql connection are correct. It could also be that you did not name the table the same as the query that the guestbook looks for. Post some code and your table name if you need more help.

    Keith


  •  

    Posting Permissions

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