make the script output the query and the mysql error (if any), in most cases this helps to narrow down what's going wrong. May be good to take a look what value $result has, too.
BTW, there is an easier way to add something to the previous DB value with only one sql statement:
update users set wc=wc+".$currentwc." where user='".$user."'