 <p><a href="http://tutorialzine.com/2010/03/who-is-online-widget-php-mysql-jquery/" rel="nofollow noreferrer">This is good tutorial.</a> Note that mysql (i believe youll use it) online users table should be typed as MEMORY.</p>