Skip to content
This repository has been archived by the owner on Dec 8, 2019. It is now read-only.

Commit

Permalink
Se corrigo el bug de la conexion con el model al iniciar sesion
Browse files Browse the repository at this point in the history
  • Loading branch information
Xibalsba committed Oct 5, 2019
1 parent da1d77f commit 37fd4e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 0 additions & 8 deletions models/model.app.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ static public function linkControlGastos($link){
}
return $page;
}

static public function iniciarSesion($correo,$tabla){
$stmt=Conexion::conectar()->prepare("SELECT * FROM $tabla WHERE correo_usuario=:correo");
$stmt->bindParam(":correo",$correo,PDO::PARAM_STR);
$stmt->execute();
return $stmt->fetchAll();
$stmt->close();
}
}

?>
8 changes: 7 additions & 1 deletion models/model.user.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
require_once "model.config.php";

class UsuariosMdl extends Conexion{

static public function iniciarSesion($correo,$tabla){
$stmt=Conexion::conectar()->prepare("SELECT * FROM $tabla WHERE correo_usuario=:correo");
$stmt->bindParam(":correo",$correo,PDO::PARAM_STR);
$stmt->execute();
return $stmt->fetchAll();
$stmt->close();
}
}

?>

0 comments on commit 37fd4e5

Please sign in to comment.