PHP文件显示语法错误

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);
}

?>

WRITE is a reserved keyword in MySQL so you should escape it using backticks:

insert into `write` ...

But I would recommend you rename the table into something more sensible.