UPDATE `cmseasy_archive` SET '$row' WHERE `aid`='312' and (state IS NULL or state<>'-1') document.write("0");