I am trying to put a date in my database in the form dd-mm-yyy, as for
my PHP page is returns 3 variables $date, $month, $year. is ther a way
to put these together? i have tried imploding them but i can't seem to
get them into an array!
here is my code:
$array = array();
$array[] = $Day;
$array[] = $month;
$array[] = $year;
$comma_separate d = implode("-", $array);
Thanks
Ben
my PHP page is returns 3 variables $date, $month, $year. is ther a way
to put these together? i have tried imploding them but i can't seem to
get them into an array!
here is my code:
$array = array();
$array[] = $Day;
$array[] = $month;
$array[] = $year;
$comma_separate d = implode("-", $array);
Thanks
Ben
Comment