$rs1->execute; if (@{$rs1->fetchrow_array}) { report_error("username_exists"); } else { report_error("username does not exist"); }