I just switched hosts and on the new host when the date and time fields are pulled from the database they are not formatted how they are supposed to be ( they worked fine on the old host ). Here's the query string..
$SQL_Query = "SELECT *, DATE_FORMAT( date, 'W - m/d/y' ) as date, TIME_FORMAT( time, '[l:i p]' ) as time FROM news WHERE TO_DAYS(NOW()) - TO_DAYS( date ) < $days ORDER BY id DESC";
Everything look right? I'd hope since it works fine on the old host, and the data is correct in the database, but why wouldn't it work on the new one? The date is displayed as
W - m/d/y [l:i p]
which is obviously just the exact text in the query. Thanks for any help..