php_rest_api/apirest_yt/index.php

21 lines
525 B
PHP
Raw Normal View History

2023-03-24 12:41:27 -03:00
<?php
echo "INDEX.php".'</br>';
require_once "clases/conexion/conexion.php";
$conector = new conexion;
#$conector->test_conector();
// Prueba Select
#$query = "SELECT * FROM pacientes";
#echo '<pre>'; print_r($conector->obtenerDatos($query)); echo '</pre>';
// Prueba insert
#$query = "INSERT INTO pacientes (DNI)value('0')";
#echo '<pre>'; print_r($conector->nonQuery($query)); echo '</pre>';
#$query = "INSERT INTO pacientes (DNI)value('1')";
#echo '<pre>'; print_r($conector->nonQueryId($query)); echo '</pre>';
?>