Being a bit dim this morning have this query
$result = $DBH->query("SELECT MAX(date_start) as date_start, rates.rate as rate FROM rates WHERE unitID=$ID AND rates.date_start <= $start ");
which only half works by that I mean I always get the max date but rates.rate does not update, to explain more, I need the data from rates.rate based on the value of MAX(date_start)
Sorry if not clear
1 Answer