$sql="INSERT INTO catalog SET(author='$author' ,title='$title' , pubyear='$pubyear' ,
price='$price' ,cash='$cash')";
mysql_query($sql)or die(mysql_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 '(author='' ,title='' , pubyear='' , price='' ,cash='')' at line 1
|