In a MySQL query, how do I write an IF ELSE statement?
Something like below:
mysql_query("...(irrelevant code).. IF(action==2&&state==0){state=1}");
Then down in my array, I can do this:
$row['state']
//this should equal 1, the query should not change anything in the database,
//just the variable for returning the information