Is your id column set to auto_increment ? You can add additional checks on the connect and select_db and see if those are executing correctly too.
pritaeas
Posting Prodigy
9,265 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86
No, name doesn't matter. I can only see it is an int, and set to not null. If the auto_increment attribute is not specified, then you need to provide a value for it in your insert query. ANyway, this is still recommended while testing:
$sql_connection = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die(mysql_error());
mysql_select_db(DB_NAME , $sql_connection) or die(mysql_error);
pritaeas
Posting Prodigy
9,265 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86
Echo the created query before you execute it. You are using method="post" in your form? Show your input tags.
pritaeas
Posting Prodigy
9,265 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86