D. php / pasatiempoConsultaNoEliminados.php

1
<?php
2
3
require_once __DIR__ . "/Bd.php";
4
require_once __DIR__ . "/TABLA_PASATIEMPO.php";
5
6
/**
7
 * @return array{
8
 *   PAS_ID: string,
9
 *   PAS_NOMBRE: string,
10
 *   PAS_MODIFICACION: int,
11
 *   PAS_ELIMINADO: int
12
 *  }[]
13
 */
14
function pasatiempoConsultaNoEliminados()
15
{
16
 $bd = Bd::pdo();
17
$stmt = $bd->query(
18
 "SELECT * FROM PASATIEMPO WHERE PAS_ELIMINADO = 0 ORDER BY PAS_NOMBRE"
19
);
20
$lista = $stmt->fetchAll(PDO::FETCH_ASSOC);
21
return $lista;
22
}
23
skip_previous skip_next