I have a stored procedure that stores data in the db, and I want to know if there is any function to get that record that is saved in the database.
$sql = "CALL registrar(?,?,?,?,?,?,?)";
$stm = $this->db->prepare($sql);
$stm->bindParam(1, $this->parametro1);
$stm->bindParam(2, $this->parametro2);
$stm->bindParam(3, $this->parametro3);
$stm->bindParam(4, $this->parametro4);
$stm->bindParam(5, $this->parametro5);
$stm->bindParam(6, $this->parametro6);
$stm->bindParam(7, $this->parametro7);
$stm->execute();
The store procedure executes something like this:
INSERT INTO ingresos (fechaingreso, descripcion, horasalida, visitante, servicio, nodo) VALUES ( concat(parametro1, ' ', parametro2),
parametro3, parametro4, parametro5, parametro6, parametro7);