Jump to content

Add $points to field `points`!


Jumpy09

Recommended Posts

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.  :P

Link to comment
https://forums.phpfreaks.com/topic/204359-add-points-to-field-points/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.