MySQL Forums
Forum List  »  PHP

Behavior changed: backslashes in queries?
Posted by: Tyler T
Date: May 04, 2006 01:35PM

I have a production Linux server running PHP 4.3.7 and MySQL 4.0.20. In my PHP code I have to use the addslashes() function when inserting strings with backslashes (\) into the DB.

I just set up a Linux dev box with PHP 4.3.7 and MySQL 4.0.26 (can't find 4.0.20 for download anywhere). When I run the same PHP page on the dev box, I get doubled backslashes (twice as many as I wanted) inserted into the strings going into database! This is a problem -- it's kind of useless to have a dev box if the dev box behaves differently than the production server. :(

Is there a php.ini option, or a my.conf option, to change this backslash insert behavior? Or, anyone know where I can download MySQL 4.0.20?

Thanks!!

Options: ReplyQuote


Subject
Written By
Posted
Behavior changed: backslashes in queries?
May 04, 2006 01:35PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.