Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $stmt= Conexion::conectar()->prepare("SELECT usuario, password, FROM $tabla WHERE usuario=:usuario");
- $stmt->bindParam(":usuario",$datosModel["usuario"],PDO::PARAM_STR);
- $stmt->execute();
- } } CONTROLLER public function ingresoUsuarioController(){ if (isset($_POST["usuarioIngreso"])) {
- # code...
- $datosController = array("usuario" =>$_POST["usuarioIngreso"],"password"=>$_POST["passwordIngreso"]);
- $respuesta = Datos::ingresoUsurioModel($datosController,"usuarios");
- var_dump($respuesta); } } }`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement