Edit: I figured it out. This is what I was looking for:
$x = ($userdata['user_whatever'] + 5);
$result = dbquery("UPDATE ".$db_prefix."users SET user_what= '$now', user_ever = '$addition' WHERE user_id='".$userdata['user_id']."'") or die(mysql_error());
Last edited by thewhenwhen; 2008-01-08 at 09:46 AM.
Must read Review for Serious PHP Developers
NuSphere PhpED 5.0
: The Staff of php-editors.com recently spent a few days working with NuSphere
PhpED 5.0
(a popular PHP IDE) and
NuCoder 1.4
(a PHP Encoding Utility), read up on all the details.