Jump to content

[SOLVED] Help Me!! Take a look at this Warning....please....


Recommended Posts

Hello - Thanks to anyone who might help me here!

 

I have set up my database fine and uploaded files for a "Comments" script. 

 

The script includes a test page to demo how it works on my site.  Well, the demo shows this warning:

 

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/content/m/b/d/mbdonner/html/comments/comments_show.php on line 38

error Table 'Comments5.page_comments' doesn't exist with query SELECT AVG(rating) from page_comments WHERE page_id='1' AND is_approved = '1' AND rating>'0'

 

 

I did change some things in the config file, but nothing crazy - I understood everything (I guess!)...

 

the main demo page is http://www.toplinepublishing.com/comments_demo.php

 

Help!  Thanks!!!!

 

OK - there is no table in the database - I just checked on that.

 

In the files I uploaded, there is a "SQL" folder with an sql file in there that is supposed to create the table if there isn't one by the name "page_comments" in there already.

 

Well, there isn't a table by that name in there, but this sql file is not creating the table.

 

What gives?

I think you have to either:

 

1. run the SQL file to create the proper tables, or

2. copy and paste the SQL contents into the 'query' section of your PHPMyAdmin and create them

 

If this is a program you downloaded then normally there's an installation file that would perform a lot of this. But, if that's not the case, then you need to manually run some of this stuff to set up your database.

Hey Guys - simcoweb, deadimp, charlieholder - I figured it out - yes, I had to import that .txt file from the "SQL" folder.  Since I really don't have a clue, but know the basics, the fact that that step was not in the installation "READ ME" file really threw me for a loop.

 

Thanks so much for your time and interest.

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.