I am getting so frustrated. I have over looked the code a dozen times, but still don't know why it isn't doing what I am asking it to do.. please help me.. I know there must be a typo or something simple.
if ($newexp >= $levelrow[$userrow["charclass"]."_exp"]) {
$updatequery = doquery("UPDATE {{table}} SET skills=skills+5 WHERE id='".$userrow["id"]."' LIMIT 1", "users");
}
The above code, as you can see, is a simple IF statement. I don't know why it won't update the query when the statement is true.
Some things to tell you guys:
I know this code is working, I have used it for other things
if ($newexp >= $levelrow[$userrow["charclass"]."_exp"])
I am trying to update field 'skills' with +5 every time the If statement is true.
The field is 'skills' and the table is 'df_users' .. please help I am so frustrated.