NameSilo

MySQL errors.

Spaceship Spaceship
Watch
I'm trying to set up a TopSites script here:

http://www.vacates.com/topsites/

I'm getting a bunch of errors though, like:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/alex/public_html/topsites/index.php on line 20

I'm not the greatest at PHP and don't know how to fix this. Any help? :) Thanks
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
if you want i can help you out for free, if it is a simple script ofcourse :)
 
0
•••
Hmm that happened to me as well when I started one.. I forget who helped me though.
 
0
•••
Can you post a few lines, say 1-20, from index.php?

It sounds like a few of the parameters aren't set correctly. Make sure the following are set correctly:

O.k., I just downloaded the script and your problem may be with config.php.

Make sure the following are set correctly:

$conf['mysql_host'] = "localhost";
$conf['mysql_user'] = "username";
$conf['mysql_pass'] = "password";
$conf['mysql_db'] = "toplist"; <- Is the name of your db table "toplist"? If it is named something other then change it here also.


I think you get the idea.

If you'd like me to have a look-see PM me.
 
Last edited:
0
•••
It's not the host, username or password in the config file. It could possible be the database. If you still need help I can fix this fast. Most likely it's either that or a bad query that can be fixed within mins. Send me a pm if you need my help! :)
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back