Access last visit time to a post

You can put a small script in your single.php that updates a custom field with the current time.

update_post_meta(get_the_ID(),"last_visit",time());

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