query("UPDATE reportsv2 SET Status='InProgress', ResolverID=".$LoggedUser['ID']." WHERE ID=".$_GET['id']); if($DB->affected_rows() == 0) { echo '0'; } else { echo '1'; }