A
Anonymous
Guest
Print the $sqlstatement before you execute it, that should give you a clue. If the firstname, lastname or birthdate contain a ' it will fail...
While debugging, instead of die ("Couldn't execute the SQL statement");, use something more descriptive like:
die ("Couldn't execute the SQL statement<br />" . mysql_error());
You wouldn't want this in a production environment ofcourse, but for debugging it's really good.
Coditor
While debugging, instead of die ("Couldn't execute the SQL statement");, use something more descriptive like:
die ("Couldn't execute the SQL statement<br />" . mysql_error());
You wouldn't want this in a production environment ofcourse, but for debugging it's really good.
Coditor