Jump to content

A short question about date inserting


Rommeo

Recommended Posts

I have the birthdate values sent from a form that are :

day(ex : 31) / month(ex : 12) / year(ex : 1900)

 

and I want to insert it to "bdate(DATE)" column in mysql.

Which function should I use to correct the values for to insert mysql ?

 

insert into people ( .... surname, bdate, gender..... )
values ( .......'$surname', $bdate, '$gender')

Link to comment
https://forums.phpfreaks.com/topic/204401-a-short-question-about-date-inserting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.