if ( $row=mysql_fetch_array($q) )
$qry=mysql_query("select * from usuarios where rpe='".$trpe."' and contraseña='".$tpass."'",$atcon);