SDP2006
04-18-2004, 02:53 PM
I'm getting this errorColumn count doesn't match value count at row 1 with this code <?php
include"connect.php";
$query = "INSERT INTO `users`(`id`,`username`,`password`,`homepage`,`aol`,`icq`,`msn`,`email`,`name`,`birthday`,`age`,`bio `,`sig`,`interests`,`location`) VALUES('','{$_POST['username']}','{$_POST['password']}','{$_POST['homepage']}','{$_POST['aol']}','{$_POST['icq']}','{$_POST['msn']}','{$_POST['email']}','{$_POST['birthday']}','{$_POST['age']}','{$_POST['bio']}','{$_POST['sig']}','{$_POST['interests']}','{$_POST['location']}')";
mysql_query($query) or die(mysql_error());
echo "Congratulations! You are registered. Proceed to login now.";
?>I don't know why I am getting this error. Everything *looks* fine. Can anyone spot the reason for this error?
Thanks to all.
Stevie
include"connect.php";
$query = "INSERT INTO `users`(`id`,`username`,`password`,`homepage`,`aol`,`icq`,`msn`,`email`,`name`,`birthday`,`age`,`bio `,`sig`,`interests`,`location`) VALUES('','{$_POST['username']}','{$_POST['password']}','{$_POST['homepage']}','{$_POST['aol']}','{$_POST['icq']}','{$_POST['msn']}','{$_POST['email']}','{$_POST['birthday']}','{$_POST['age']}','{$_POST['bio']}','{$_POST['sig']}','{$_POST['interests']}','{$_POST['location']}')";
mysql_query($query) or die(mysql_error());
echo "Congratulations! You are registered. Proceed to login now.";
?>I don't know why I am getting this error. Everything *looks* fine. Can anyone spot the reason for this error?
Thanks to all.
Stevie