$checkquery = "SELECT * FROM tblenc where encid='$encid'" $registro=mysql_query($checkquery,$conexion);