Jump to content

[SOLVED] adding value to it self MYSQL


thisisnuts123

Recommended Posts

sorry 1000 was just an example

 

they start off with 0 points

 

mysql_query("UPDATE user SET `points` = point + 1000 WHERE `username` = '$_SESSION[user]'");

 

i made the filed have 1000 points as default now every time they get an answer right the points increase so it;s working..

but if i start them off with 0 point the value stays at 0 not sure why

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.