I'm using this script
$sql = "INSERT INTO form_cat (name, desc) " .
"VALUES ('" . $_POST['cat_name'] . "','" .
$_POST['cat_desc'] . "')";
mysql_query($sql, $conn)
or die('Could not create user account; ' . mysql_error());
To insert stuff from a form to a database table, ive used this code else where on my site and it works fine, all the relitive includes and variables to make it work are being included so i just don't see the problem. if u could help it would b great.
Error Message:
Could not create user account; 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 'desc) VALUES ('dfgdfg','dfgdfgdf')' at line 1