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. 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! 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
Archived
This topic is now archived and is closed to further replies.