Jumpy09 Posted June 10, 2010 Share Posted June 10, 2010 I'm proud of this, even if it's simple... but it isn't working. $inserttotalrates=mysql_query("UPDATE `users` SET silver = silver + '$points', points = points + '$points', profilerates = profilerates + 1 WHERE uid = '$rateduid'") or die(mysql_error()); I think it's where I am trying to add $points. Is there anyway to allow this? I've even tried. $inserttotalrates=mysql_query("UPDATE `users` SET silver = silver + " . $points . ", points = points + " . $points . ", profilerates = profilerates + 1 WHERE uid = '$rateduid'") or die(mysql_error()); No error pops up! So this one is throwing me. Note: I throw in the "or die" because I like when it breaks my site... instant gratification on error. Quote Link to comment https://forums.phpfreaks.com/topic/204359-add-points-to-field-points/ Share on other sites More sharing options...
Jumpy09 Posted June 10, 2010 Author Share Posted June 10, 2010 Field Cannot be NULL! Fixed it! Quote Link to comment https://forums.phpfreaks.com/topic/204359-add-points-to-field-points/#findComment-1070224 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.