Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php error message

Status
Not open for further replies.

vokez

Programmer
Feb 12, 2013
3
KE
what could be the possible problem when i get the following error message after log in to my project

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\mine\login.php on line 6

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in C:\xampp\htdocs\mine\login.php on line 6

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\mine\login.php on line 7

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in C:\xampp\htdocs\mine\login.php on line 7
please help
voke
 
Hi

Had your script successfully connected to a MySQL database server before calling [tt]mysql_real_escape_string()[/tt] ? If that is not possible and you use PHP older than 5.3.0, try [tt]mysql_escape_string()[/tt] which is least efficient but in change not requires an open connection.

Feherke.
[link feherke.github.com/][/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top