vampke Posted September 23, 2007 Share Posted September 23, 2007 Hi good people of phpfreaks! I need some help with a basic php thingy. I'm trying to concatenate 3 fields to form a date field to put this in a database. What I have so far is $date = $year ."-". $month ."-". $day; This displays an empty $date. Clearly i'm messing things up! what's the right way to go about this? edit: I apologise: the problem was not in the script, but in the browser cache Link to comment https://forums.phpfreaks.com/topic/70378-solved-concatenate-date/ Share on other sites More sharing options...
BlueSkyIS Posted September 23, 2007 Share Posted September 23, 2007 what are the values you have set for $year, $month and $day? What type of database and field are you putting this into? MySQL date field? Link to comment https://forums.phpfreaks.com/topic/70378-solved-concatenate-date/#findComment-353549 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.