Give plusses to online users

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

    Give plusses to online users

    Any one here give me the code for giving plusses to all online users, it tool for admin for adding plusser to all online users, thank you,..

    #2
    Should be Sumfin like this...

    PHP Code:
    /**
     * Substitute 'ibwf_online' with your online table name.
     */
    $olist 'none';
    $on_users mysql_fetch_array(mysql_query('SELECT uid FROM ibwf_online'));

    // Update each users plusses
    if(count($on_users) > 0){
     foreach(
    $on_users as $user){
      
    // Update plusses. Substitute 50 with amount of plusses
      
    mysql_query('UPDATE ibwf_users SET plusses=plusses+50 WHERE id='.$user[0]);
     }

     
    $olist implode(', '$on_users);
    }
    echo 
    'Updated online users plusses by 50. <br/>List updated: '.$olist

    Comment

    Working...
    X