Didn't have much luck searching the site for this one, but I'll bet it's in here somewhere.
I've got a very basic php search page that queries an MSSQL database. You throw in a name, it searches. The obvious problem is when you put in a name such as O'Connell, the query hits the apostrophe and proceeds to tell me I'm an idiot for using an apostrophe (not in those exact words).
I'd imagine there's a blatantly simple workaround here that I just can't put my finger on. Thanks for the help, folks.
I've got a very basic php search page that queries an MSSQL database. You throw in a name, it searches. The obvious problem is when you put in a name such as O'Connell, the query hits the apostrophe and proceeds to tell me I'm an idiot for using an apostrophe (not in those exact words).
I'd imagine there's a blatantly simple workaround here that I just can't put my finger on. Thanks for the help, folks.