Jump to content

Date


LightningSt

Recommended Posts

So I am trying to make a variable that will allow me to insert into a MySql database a date... I have three text boxes for year day and month and the format of the date field in the MySql is YYYY-DD-MM so my variable is trying to look like this...

 

$date = $_POST['year'];-$_POST['day'];-$_POST['month'];

 

but if i echo $date... it only echos the year and not the rest... i've tried putting the dashes like the following +'-'+    .'-'.    ."-".       

 

Nothing is working for me... any suggestions?

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/110606-date/
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.