mysql_real_escape_string

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

mysql_real_escape_string

Postby giles1000 » 03. September 2008 17:01

Hi all

I'm finishing a developement that I'm running on XAMPP as my localhost, checking & uploading to my linux domain. I'm learning about mysql_real_escape_string. All is working fine on my linux server (e.g. it appends characters on way to database with \' and removes the \ when serving the query again).

However on XAMPP the \ is being served when I view the record again. My guess is that XAMPP is set to show this, and my server is set not to. I'm making an enquiry with my domaine host, but can I sak you, if to your knowledge XAMPP is set to do this out of the box?

I'd appreciate any help
Best Giles
giles1000
 
Posts: 6
Joined: 03. September 2008 16:52

Postby glitzi85 » 03. September 2008 20:12

Are you sure that the escaping is done by mysql_real_escape_string and the data is not escaped already before?

You should compare the settings on your server and on your local PC watching for differences in Magic Quotes.

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 77 guests