Forum Moderators: coopster
Something like this,
$query = "SELECT date FROM $database WHERE year = '$year'
The date is stored in the 0000-00-00 format.
$query = "SELECT date FROM $database WHERE YEAR [dev.mysql.com](date) = '$year';
$query = "SELECT YEAR(date) as year FROM $database WHERE YEAR [dev.mysql.com](date) = '$year' ;
[edited by: coopster at 9:15 pm (utc) on April 29, 2004]
Pull It - Set It - $date_input = $date; list($month, $day, $year) = split('[/.-]', $date_input); Then - $date = $year
...Dang Coopsters on the ball today :P