Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
function updateOnlineTime(){
mysql_query( 'Update users SET lastonline=' .time() . ' WHERE ... ' );
}
$diff = time() - 300; // Времето преди 5 минути в Unix Timestamp формат
$query = mysql_query( 'SELECT * FROM users WHERE lastonline > ' . $diff . ' LIMIT 10 ' );