I am trying to store a last name that contains an apostrophe (O'Merle). It appears that PHP is adding a '\' to the last name (O\'Merle). The back slash is causing a SQL error.
The last name is entered from a PHP form and is retrieved using $_POST. Is there away to keep the apostrophe or single quote and get rid of the back slash?
lastname = [ O\'Merle ]
Warning: odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][SQL Native Client][SQL Server]Incorrect syntax near 'Merle'., SQL state 37000 in SQLExecDirect
Thanks.
Fred Bernstein