1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 update customfield entry by sql command

Discussion in 'Styling and Customization Questions' started by Nudaii, Sep 20, 2015.

  1. Nudaii

    Nudaii Well-Known Member

    howdy, one of the addons my community is working on requires a sql command to increment a custom field number by 1 each time its used.

    on our php/ non xf copy this works

    UPDATE `force_alignment` SET `points` = `points` + 1 WHERE `user_id` = 1

    what would the query be for xF if the field in question was called custom field id was force points?:)

    thanks in advance!
     

Share This Page