Finding difference in days

You should store the time as a unix time stamp then you can use human_time_diff to compare.

echo human_time_diff( get_the_time('U'), current_time('timestamp') );

If the difference is more than 24 hours difference it will return the value in days.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)