5 Online Users at index

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    5 Online Users at index

    Can any one here give me the code for first 5 online users at index with their avatars,.. Thank you?

    #2
    show me a demo.... ill code it exactly the same 4 ya


    ....................................
    http://photomag.lk/
    ....................................

    Comment


      #3
      Go to here http://pinoyaztig.net the first 5 online is shown on the index with their avatar,..

      Comment


        #4
        ..

        So easy m8...

        Its better 2 code the m0st 5 online users today. =)


        http://www.toinx.org

        Comment


          #5
          Something like
          PHP Code:
          // 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/>';
          }

          Comment

          Working...
          X