字段+1的问题

#1 shejiqi

$Setword = array(t_commend => t_commend+1);
$ticket->update("id=".$id,$Setword);

这个好像没有效果  难道只能直接赋值吗?  不能写成该字段+1吗

2010-12-24 15:31:01

#2 jake

看看这个
http://speedphp.com/post/model-incr.html

2010-12-24 20:29:25