inicio_de_sesion.php
Código PHP:
   <!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Crimen Perfecto</title>
    <link rel="stylesheet" href="css/estilos.css">
 
</head>
 
<body>
 
    <form action="procesa_login.php" method="post">
    
    <table border="1">
    
            <tr>
                <td>Usuario</td>
                <td> <input type="text" name="usuario"></td>
            </tr>
        
    
            <tr>
                <td>Contraseña</td>
                <td><input type="password" name="clave"></td>
            </tr>
 
            <tr>
                <td></td>
                <td><input type="submit" value="Enviar"></td>
            </tr>
 
 
        
    </table>
 
    </form>
    
 
</body>
</html> 
    Código PHP:
   <?php
 
include('../php/connect.php');
 
$usuario= $_POST['usuario'];
$clave = $_POST['clave'];
echo $_POST['usuario'] . "" . $_POST['clave'];
 
$resultados= mysqli_query($conexion, "SELECT * FROM pase WHERE usuario='$usuario' AND pass='$clave'");
 
 
if($row =mysql_fetch_array($resultados)){ 
 session_start(); // inizializa sesion
 
 $_SESSION['id'] = $row['id']; // copia idusuario en la variable de sesion
 
 header("location:links.php");
// header: redirecciona
 
} else{
    echo "Datos incorrectos. Intentelo nuevamente" 
    ?>
    <a href="inicio_de_sesion.php">Aqui.</a>
    <?php
}
 
?>    Ya probe todo y no se que hacer. Si alguien me ayuda, le agradeceria. GRACIAS!
 
 
 mysql_fetch_array() expects parameter 1 to be resource
 mysql_fetch_array() expects parameter 1 to be resource 


