HI There
This is the error I am receiving when trying to register on the site:
Column count doesn't match value count at row 1
error: failed to execute query INSERT INTO users (uname,uteln,umail,ustre,usubu,ucity,uprov,ucode,uuser,upass,uc_dt) VALUES
This is the regi.php coding. I cannot figure out the problem
<?php
if (isset($_POST['register'])) {
$query = "INSERT INTO users (uname,uteln,umail,ustre,usubu,ucity,uprov,ucode,uuser,upass,uc_dt) ".
"VALUES ('".$_POST['name']."','".$_POST['teln']."','".$_POST['mail']."','".$_POST['stre']."',".
"'".$_POST['subu']."','".$_POST['city']."','".$_POST['prov']."','".$_POST['code']."',".
"'".$_POST['user']."','".$_POST['pass']."','".date('Y-m-d H:i:s')."',uacti=2)";
$result = mysql_query($query)
or die(mysql_error()."
error: failed to execute query $query");
mail('ndtsales@mweb.co.za','New User','New user requires activation.');
?>
Thank you for your registration.
Your account requires activation.
Once your account has been approved. You will be notified and will be able to continue shopping.
<?php
} else {
?>
Registration
Contact Details
Full Name
Contact Number
E-Mail Address
Delivery Details
Street
Suburb
City
Province
Code
Login Details
Login User Name
Login Password
<?php
} // end if
?>