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