Can any one here give me the code for first 5 online users at index with their avatars,.. Thank you?
5 Online Users at index
Started on the old forum in November 2010 · view the original in the archive · old links redirect here
show me a demo.... ill code it exactly the same 4 ya
😳 .................................... http://photomag.lk/ .................................... 🤨
Go to here http://pinoyaztig.net the first 5 online is shown on the index with their avatar,..
..
So easy m8...
Its better 2 code the m0st 5 online users today. =)
Something like
// You can use MySQL JOIN but whatever
$onusrs = mysql_fetch_array(mysql_query('SELECT uid FROM ibwf_online LIMIT 0, 5'));
echo 'Online Users<br/>';
if(count($onusrs) > 0){
foreach($onusrs as $usr){
$user = (object) mysql_fetch_array(mysql_query('SELECT * FROM ibwf_users WHERE id="'.$usr[0].'"'));
// User details...
echo $user->username.' ('.$user->sex.'/'.$user->location.')<br/>';
}
}