Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql increment value by 1 in update

mysql_query("
    UPDATE member_profile 
    SET points = points + 1
    WHERE user_id = '".$userid."'
");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #increment #update
ADD COMMENT
Topic
Name
9+8 =