When I type don’t, it save don\’t to database. I tested the code on wamp offline server and it save don’t. But when I test the code on online hosting, it save don\’t. How to make online hosting don’t use excape string?
Codes :
<?php
if (isset($_POST['btn_edit'])) {
$description = $_POST['description'];
}
$sql = "UPDATE expense
SET description=?
WHERE spender_id=?";
$q = $conn->prepare($sql);
$result = $q->execute(array($description, $_SESSION['user_id']));
?>
<input type="text" name="description" size="70" value="" />
disable magic_qoutes or change this statement
as