Menu
is there anyway i can compare 3 or more date type column?
and my select statement returns this 3 value.
is there any way i can write in PHP to get the earliest or the latest date?
let’s say:
[code]
$earliest = XXX($row[date1], $row[date2], $row[date3]) <- returns (“2006-06-01”)
$latest = XXX($row[date1], $row[date2], $row[date3]) <- returns (“2006-09-19”)
i tried to get these from mysql command like if possible but cant find any way to do it..
i guess there’s no function to this..
select XXXXX(date1,date2,date3) <–returns ‘2006-06-01 ‘
select YYYYY(date1,date2,date3) <–returns ‘2006-09-19 ‘