Jak napisać instrukcję IF ELSE w zapytaniu MySQL?
Coś takiego:
mysql_query("...(irrelevant code).. IF(action==2&&state==0){state=1}");
Następnie w mojej tablicy powinienem być w stanie zrobić to:
$row['state']
//this should equal 1, the query should not change anything in the database,
//just the variable for returning the information