如何在MySQL查询中编写IF ELSE语句?
如下所示:
mysql_query("...(irrelevant code).. IF(action==2&&state==0){state=1}");
然后在我的数组中,我应该能够这样做:
$row['state']
//this should equal 1, the query should not change anything in the database,
//just the variable for returning the information
https://stackoverflow.com/questions/8763310
复制相似问题