Injection Prevention

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Injection Prevention

Postby SirChick » 02. August 2007 01:20

Does apache have the string escape auto on cos when i put the string escape on my variables im getting hideous errors and was wondering if its cos apache has it turned on already so im effectively trying to turn on something thats all ready on ?

this is the error im getting, non of the coders can fix it so it might be something with apache... so ill paste the error see if any of you regocnise it...

Notice: Undefined index: TermsOfService in C:\xampp\htdocs\RegisterPage.php on line 4

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

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

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\RegisterPage.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\RegisterPage.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\RegisterPage.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\RegisterPage.php on line 7

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

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

Notice: Trying to get property of non-object in C:\xampp\htdocs\RegisterPage.php on line 25

Notice: Trying to get property of non-object in C:\xampp\htdocs\RegisterPage.php on line 30
SirChick
 
Posts: 68
Joined: 19. June 2007 15:03
Operating System: Windows 7 64 bit

Postby outlaw » 02. August 2007 02:28

Does apache have the string escape auto on


.... what is this?
do you mean php having magic_quotes on? Probably so
http://us3.php.net/magic_quotes

Access denied for user 'ODBC'@'localhost'

This error means that you are not connected to the database, which you need to be in order to use mysql_real_escape_string
outlaw
 
Posts: 18
Joined: 08. June 2007 23:01


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 50 guests