O'Neil changes to O/////////'Neil PHP/mysql

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
wyne1234
Forum Newbie
Posts: 1
Joined: Wed May 07, 2003 10:23 am

O'Neil changes to O/////////'Neil PHP/mysql

Post by wyne1234 »

PHP 4 and Mysql set up and all works well except when a users name has an " ' " in it like O'Neil, when this goes into the database it gets changed to O////////'Neil

I cannot figure out how to stop this. I have added the stripslashes function before writing the fields to the database and this does nothing. I cannot find anything else that relates to this issue.

Any suggestions would be appreciated.

Wayne
Post Reply