Here's my problem... I'm trying to have users input their birthday via an html form in a particular format: DD-MM-YYYY
PHP/MySQL Date Issue
9
Here's my problem...
I'm trying to have users input their birthday via an html form in a particular format: DD-MM-YYYY
Then I want to INSERT that into my DB under the column: birthdate.
It seems that MySQL wants dates formatted in the YYYY-MM-DD format. How to I collect that information as a $string, and then convert it into the correct format?
I admit, I'm a novice at PHP and MySQL...this one has stumped me.
Anyone care to help?
I'm trying to have users input their birthday via an html form in a particular format: DD-MM-YYYY
Then I want to INSERT that into my DB under the column: birthdate.
It seems that MySQL wants dates formatted in the YYYY-MM-DD format. How to I collect that information as a $string, and then convert it into the correct format?
I admit, I'm a novice at PHP and MySQL...this one has stumped me.
Anyone care to help?
- SmartWeb
- CrhisD
- [ 1 ] Thanks
- [1] reply
- Big Squid
- [1] reply
- weaveronline
Next Topics on Trending Feed
-
9