I\'m trying to make an last activity function for an website. but i can\'t get it to work. I hope you guys can help me out here.
this is my query:
$last
Your SQL query is in the wrong order.
$last_activity_query = "UPDATE users_table SET 'date_last_inlog' = NOW() WHERE user_name = '$user_name'";