the page show
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 'test2','test3')' at line 3
my php code
<?php
require 'config.php';
// Insert data into mysql
$sql="INSERT INTO content (title , discription, content)
VALUES
('$_POST[title]',''$_POST[discription]','$_POST[content]')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "1 record added",
mysql_close($con);
?>
my sql code :
CREATE TABLE `matancms`.`content` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`title` TINYTEXT NOT NULL ,
`discription` TINYTEXT NOT NULL ,
`catid` TINYTEXT NOT NULL ,
`content` TEXT NOT NULL
) ENGINE = MYISAM