Tell me, please, how to make such a function.
If the user did not change the information in the database for five minutes, then update the column in the online table to 0, where the name is exactly session['username'] , if not, then output its name.