I'm trying to send title and content to my table named write . But i'm having error while running this php file .
Below is the error shown
not sucessfullyYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'write values('','','')' at line 1
<?php
require "connection.php";
$id = $_POST["id"];
$title =$_POST["title"];
$content =$_POST["content"];
$sql_query ="insert into write values('$id','$title','$content');";
if(mysqli_query($con,$sql_query))
{
echo"data insertion sucess";
}
else
{
echo "not sucessfully".mysqli_error($con);
}
?>