[PHP] Re: single quotes in database

2003-11-07 Thread pete M
also check magic_quotes_runtime in php.ini. This add's slashes to incoming Post/get variables You can change this at tun time with the ini_set() function pete Steve Buehler wrote: I am using PHP/MySQL and am having a problem. We have some names and addresses in the database that have single

[PHP] Re: single quotes in database

2003-11-07 Thread jeffrey_n_Dyke
You can use addslashes and stripslashes when inserting and selecting respectively. addslashes will turn your name into O\'connel. and stripslashes will bring it back to the displayable format. check out php.net/addslashes php.net/stripslashes hth Jeff