Page is a not externally linkable
- Code, Content, and Presentation
-- Databases
---- Unable to add (INSERT) user to database :(


topr8 - 8:28 am on Oct 4, 2011 (gmt 0)


>>I changed age it to a input setting to a varchar and now it all works perfecto.

not the right way to do it.
you should check for an integer, if a non integer is entered into the text field, then you should make them fill it in again.
if age is not required then if they don't enter anything you should insert NULL into that field in the db.
one way to help users in the original form would be to have a drop down with the ages rather than a text field (you should still test the submitted value though)


Thread source:: http://www.webmasterworld.com/databases_sql_mysql/4369163.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com