mysqli,$sql); $row= mysqli_num_rows($rs); if($row==1){ $obj->redirect($path); } else{ $error= "Record not found..."; } } ?>