Hi, i am having a problem with a form where a user can enter there birthday when they register. In the database it does not show up, it only shows the default value 0000-00-00. I am using month, date and year in the form and i am wondering is there a function or anything that can correct this problem.
nick3592
0
Light Poster
Recommended Answers
Jump to PostWe would need to see the code to be able to offer any real help.
Void of that, I can do little more than direct you to the PHP manual. You could start …
Jump to Postfirst you should create the date in variable with your day,month,year data and submit it in database in the format YYYY-MM-DD.
your date should be in YYYY-MM-DD format.
All 7 Replies
Atli
182
Posting Pro
hemgoyal_1990
5
Junior Poster
nick3592
0
Light Poster
hemgoyal_1990
5
Junior Poster
nick3592
0
Light Poster
hemgoyal_1990
5
Junior Poster
JRM
107
Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.