$rs1->execute; if($rs1 != 'NULL') { report_error("username_exists"); } else { report_error("username does not exist"); }