Join the forums now, and start posting to receive access to our Scripts Vault!
$exampleuser = new User($exampleid, $db);//Examples:$zeggy = new User($zeggyid, $db);$dvd871 = new User($dvdid, $db);
$db->execute("update `users` set `gold`=? where `id`=?", array($user->gold, $user->id));
It's true that it can cause problems if more than one event happens at the same time.BUT this can be solved using table locks or transactions. Basically you can get MySQL to lock the the rows you need while the script does its stuff. Then unlock the table when you're done.