Ver Mensaje Individual
  #8 (permalink)  
Antiguo 18/07/2009, 11:05
Avatar de gjx2
gjx2
 
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 15 años, 8 meses
Puntos: 139
Respuesta: me ignora un isset

Veo que tu problema es otro
Aqui te posteo la posible solucion.

Código PHP:

session_start
();
 require(
"../requis/requi.php"); 
 if(!isset(
$_SESSION["nk_usu"]) and !isset($_SESSION["nk_pass"]))
    {
    
$usuariologin="noexiste";
    if(isset(
$_POST["usuario"]) and isset($_POST["password"]))
        {
        
$nick=$_POST["usuario"];
        
$pass=$_POST["password"];
        
$pass=md5($pass);
        
$sql="Select * from usuarios where nick='$nick' and pass='$pass'";
        
$resul=mysql_query($sql);
       
       if ( 
mysql_num_rows($resul)){
       
             
$temamysql_fetch_array($resul);
            
$varilog="siexiste";
    
        if (
$tema["nick"]==$nick and $tema["pass"]==$pass )
            {
            
$_SESSION["nk_usu"]=$nick;
            
$_SESSION["nk_pass"]=$pass;
            
header ("location: ./panel.php");
            
$usuexist="siexiste";
            }
          
        else
            {
            
$usuexist="noexiste";
            }
        }
           
        else{
    
            
$varilog="noexiste";
        }
       
       }
       
       }