Replace PHP's date() function with MySQL's NOW()