Well, this type of error is typically shown because you're tying to insert data into a table, yet the number of columns doesn't match the number of values you're trying to insert. Take for example the last query in the code:
Code:
$sql = "INSERT IGNORE INTO
cms_users
VALUES (
NULL,
'$adminemail',
'$adminpass',
'$adminname',
3)
";
$result = mysql_query($sql) or die(mysql_error());
Well, the above is trying to insert five values into the table. But if the table only has four columns, then it will fail. Another way for it to fail is if you forgot one of the commas, thus making it only four values that you are trying to input into a table that has five columns. This latter case is the mistake I most commonly made when I first got started. So, I try to be a little more consciencious with regards to the commas now. (Just remember to not put a comma after the last value. In the example above it would be after the number 3.)