I can't figure out how to update my last inlog time

后端 未结 2 762
伪装坚强ぢ
伪装坚强ぢ 2021-01-26 15:46

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         


        
2条回答
  •  萌比男神i
    2021-01-26 16:23

    Your SQL query is in the wrong order.

    $last_activity_query = "UPDATE users_table SET 'date_last_inlog' = NOW() WHERE user_name  = '$user_name'";
    

提交回复
热议问题