Jump to content

[SOLVED] concatenate date


vampke

Recommended Posts

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

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.