$db->write_query('UPDATE '.TABLE_PREFIX.'users SET reputation = reputation + 1 WHERE uid='.$uid);
(7 Sep, 2012, 8:42 am)Cluster escribió: No entiendo tu duda...
<?php
$plugins->add_hook('global_end', 'foo');
function foo()
{
global $db;
$uid = 1;
$db->update_query('users', array('reputation' => '`reputation`+1'), "uid='{$uid}'", 1, true);
}