can anyone tell me anything about mysqls date functions
and how i can call them through php
Hi There
To display dates from mysql, a couple of funtions I use, just pass in the date in your SQL result, the format can be changed to display any format you like
function ConvFromMySQL2($sqldate) {
$format= "d F Y";
$mydate = date($format,strtotime($sqldate));
return $mydate;
}
function ConvFromMySQL3($sqldate) {
$format= "Y-m-d";
$mydate = date($format,strtotime($sqldate));
return $mydate;
}
to use mysql date functions in mysql just stick them in your query
cheers
Sparky
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)