Figer's Technology Consulting | PHP - handling apostrophes

PHP - handling apostrophes

Here is the code you'll need to use to handle apostrophes, this just adds a backslash in front of the apostrophes


$myvariable = str_replace("'","\'",$myvariable);

Comments are closed