mysql escape apostrophe code example Example: mysql escape apostrophe $var = $conn->real_escape_string($_POST["var"]);