I have a datetime field in mysql.
i would like to retrieve it and then grab only the date to one variable and the time to another.
I'm not sure what to use, but i would want something like this.
//retrieved from mysql
$var1 = '2006-07-07 16:45:56';
// i would like to have the following result
$var2 = '2006-25-06';
$var3 = '16:45:56';
i'm sure it's very easy, i just can find the right command in php functions to do it.
thanks,
chris