File "Seguimiento.php"
Full Path: C:/wamp64/www/casos_medicos1/model/Seguimiento.php
File size: 534 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
require_once __DIR__ . '/../model/conexion.php';
class SeguimientoModel {
private $conn;
public function __construct() {
$this->conn = (new Conexion())->getConexion();
}
public function obtenerSeguimiento($cedula) {
$sql = "SELECT * FROM seguimiento WHERE cedula = ? ORDER BY fecha DESC";
$stmt = $this->conn->prepare($sql);
$stmt->bind_param("s", $cedula);
$stmt->execute();
return $stmt->get_result()->fetch_all(MYSQLI_ASSOC);
}
}