thinkphp3.2 阅读数加1实现

//点击数加1
t e a m − > w h e r e ( " t m i d = ′ team->where("tm_id=' team>where("tmid=tm_id’")->setInc(‘tm_click’, 1);

//点击数减1
t e a m − > w h e r e ( " t m i d = ′ team->where("tm_id=' team>where("tmid=tm_id’")->setDec(‘tm_click’, 1);

你可能感兴趣的:(thinkphp)