如何在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
添加回答
舉報
0/150
提交
取消