With this query I get an error "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near..."
$sql = 'INSERT INTO articles ( long_text )
VALUES ("' . mysqli_real_escape_string($conn, $long) . '")';
if ($conn->query($sql) === TRUE) {
echo "New record created successfully" . "<br>" ;
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}
Does anyone know what is causing the problem?
echo $sql; and show us result