Hey guys, I know absolutely NOTHING about mysql, or the error I am getting, hopefully someone on here knows more then I do! Here is the line of code it's referring to: Iv changed over all URL's to match the new sites URL, along with the .htaccess and config.php file.
It sounds like mysql_connect() is missing.There should be a line like the following, somewhere before your mysql_query calls: mysql_connect("hostname","username","password"); PHP: Hope this helps
I'm not sure I understand this, lol Where would I need to put that? This is part of the config.php file: ### = my DB info All information in the config.php is set correctly.
Maybe your host is not localhost but another mysql server, as in example Netfirms uses mysql.netfirms.com instead. By the way, to avoid get errors displaying your site's path (/home/pinkstyl/public_html/wpskins/) put this immediately after <?php error_reporting(0); Code (markup): this prevents printing any error message, so add it once that your are done fixing the problem
If you are sure the config file has the right user/pass/db name, then the most common error with a manual install on a cPanel server is to forget to append the cPanel username to the db name and user name. Example: cpanel username george db name articles db user writer pass demo Config would look like this: dbname george_articles dbuser george_writer pass demo If you did an auto install, just delete the whole mess and do again.
The only other thing I can think of is if the user you are using does not have the necessary privileges? If it is a new user you have added to mysql, have you given them sufficient privileges to access the database? Just a thought
Hey guys, Thanks everyone for the help! Problem was: I was not including config.php on all pages... hence the error! It's been fixed, and iv repped everyone