Hello i m developing admin panel for my project
i want to add new records
when i fill out the form and hit the add button its redirect me a error message
i dont know how to ride on this error please help thanks!
The error is
Insert failureColumn count doesn't match value count at row 1
$query = "SELECT * FROM person";
$result = mysql_query($query);
$nos = mysql_num_rows($result);
$rno = $nos+1;
$query = "SELECT * FROM person WHERE fullname = '$parent' LIMIT 1";
$result = mysql_query($query);
$objParent = mysql_fetch_object($result);
$query = "INSERT INTO person VALUES('$rno','$name','$gender',$objParent->id,'','$birthday','$email','$profession',
'$major','$residence','$spousename','$divorceddate','$remarrieddate')";
$result = mysql_query($query) or die("Insert failure".mysql_error());