Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Access Denied (Php problem)

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch
Impact
11
Im using phpBannerExchange 2.0 Gold and when i put the HTML code on a site, it shows this error:

Code:
Warning: mysql_real_escape_string(): Access denied for user: 'ovfactor@localhost' (Using password: NO) in /home/ovfactor/public_html/view.php on line 43

Warning: mysql_real_escape_string(): A link to the server could not be established in /home/ovfactor/public_html/view.php on line 43

Warning: mysql_real_escape_string(): Access denied for user: 'ovfactor@localhost' (Using password: NO) in /home/ovfactor/public_html/view.php on line 44

Warning: mysql_real_escape_string(): A link to the server could not be established in /home/ovfactor/public_html/view.php on line 44
Invalid Banner Code!


The view.php file is attached, can anyone fix it or tell me whats wrong? (had to save it as a txt, couldnt upload php and didnt feel like zipping it).



Edit: it has something to do with these two lines:

PHP:
$uid=mysql_real_escape_string($uid);
$cat=mysql_real_escape_string($cat);

I removed them and the error was gone (but it needs these lines to work)
 
Last edited:
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
It's access denied, so I think the problem is the MySQL details you have in config.php

Check if they are right, etc.
 
0
Close
there all right, ill double check it though (i have changed it since i installed the script, and it had no errors)


Edit: double checked and its all right...
 
Last edited:
0
Close
It seems that you do not have a password input in config.php.
 
0
Close
my config has:
PHP:
$dbhost = "localhost";
$dbuser = "###########";
$dbpass = "#######";
$dbname = "#############";
 
0
Close
0
Close
There must be something wrong with your authentication credentials above.
Also the error you pasted says

Warning: mysql_real_escape_string(): Access denied for user: 'ovfactor@localhost' (Using password: NO) in /home/ovfactor/public_html/view.php on line 43

Perhaps your password is not set. Check & echo the variable...
 
0
Close
now that i look at the error, shouldnt ovfactor@localhost be the username of the database?
 
0
Close
That should be the username.
 
0
Close
what would be making it say "ovfactor" instead of "ovfactor_theusername"?

because the username in config is "ovfactor_theusername"
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back