I'm replacing a single quote with the backward tick (`) symbol and inserting new records in MySQL with success. The owner has requested to see single quotes not the backward tick. How can I insert without using the str_replace method below? or does anyone have ideas where I can find sample code?
$sqlset = $sqlset . "Title";
$sqlset2 = $sqlset2 . "'" . str_replace("'", "`",$HTTP_POST_VARS["title"]) . "'";