<?
$tbname = "user";
$host = "127.0.0.1";
$user = "root";
$passwd = "1234";
$dbname = "test";
mysql_connect($host,$user,$passwd) or die ("Can not Connect To HOST..");
mysql_select_db($dbname) or die ("Can not Connect To Database..");
echo $_POST["group"];
$sql = "INSERT INTO $tbname(group)
VALUES('$group')";
$sqlquery = mysql_db_query($dbname, $sql);
?>
#1064 - 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 'group) VALUES('Author')'