123456789101112131415161718192021 |
- <?php
- ini_set('display_errors', 1);
- ini_set('display_startup_errors', 1);
- error_reporting(E_ALL);
- include "../include/bd_pdo.php";
- $id = 2;
- $hoy = date("Y-m-d h:i:s");
- echo $hoy;
- $stmt = $pdo->prepare('Select * from fs_asistenciaprofesor_checado(:hoy, 360, :usr)');
- $stmt->bindParam(":hoy", $hoy);
- $stmt->bindParam(":usr", $id);
- if(!$stmt->execute()){
- print($stmt->errorInfo());
- exit();
- }
- print_r($stmt->fetchAll());
- ?>
|