I have an error on insert value mysql. Please see my PHP code
<?php
    $ali = $_POST['ali'];
    $con = @mysqli_connect('localhost', 'root', '', 'mohammad');
    if (!$con) {
        echo "Error: " . mysqli_connect_error();
        exit();
    }
    $insertinto_ic_add = "INSERT INTO sq (text) VALUES ('" . $ali . "')";
    mysqli_query($con, $insertinto_ic_add) or die("database error:" . mysqli_error($con));
?>
<form action="" method="post">
    <input name="ali">
</form>
I input the values " n't " and an error occurs:
database error:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 't')' at line 2
 
     
    