Re: [PHP] need apostrophe solution

2003-02-15 Thread Leif K-Brooks
Correct, or you can use a .htaccess file if you're on apache. Doug Parker wrote: So you're saying that I have to turn on magic_quotes_gpc in php.ini in order for it to work? the ini_set won't work? Leif K-Brooks wrote: Magic_quotes has already done (or not done) its job by the time your scr

Re: [PHP] need apostrophe solution

2003-02-15 Thread Doug Parker
So you're saying that I have to turn on magic_quotes_gpc in php.ini in order for it to work? the ini_set won't work? Leif K-Brooks wrote: Magic_quotes has already done (or not done) its job by the time your script runs. Doug Parker wrote: OK - thanks. I saw that the magic_quotes_gpc is turn

Re: [PHP] need apostrophe solution

2003-02-15 Thread Leif K-Brooks
Magic_quotes has already done (or not done) its job by the time your script runs. Doug Parker wrote: OK - thanks. I saw that the magic_quotes_gpc is turned off by default, so I did a ini_set(magic_quotes_gpc, 1) to turn it on temporarily. I ran a get_magic_quotes_gpc() and saw that the ini_s

Re: [PHP] need apostrophe solution

2003-02-15 Thread Doug Parker
OK - thanks. I saw that the magic_quotes_gpc is turned off by default, so I did a ini_set(magic_quotes_gpc, 1) to turn it on temporarily. I ran a get_magic_quotes_gpc() and saw that the ini_set did work, but for some reason the query still won't accept the quotes. What am i doing wrong? than

Re: [PHP] need apostrophe solution

2003-02-14 Thread Chris Shiflett
--- drparker <[EMAIL PROTECTED]> wrote: > i need to escape all my apostrophes in values submitted to a mySQL > database. http://www.php.net/manual/en/function.addslashes.php > is there a way i can loop thru all the post variables and replace the > apostrophes? Read about the magic_quotes setting