Initial Commit
This commit is contained in:
23
action/usuario_find.php
Normal file
23
action/usuario_find.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
$ruta = '../';
|
||||
require_once '../include/bd_pdo.php';
|
||||
global $pdo;
|
||||
|
||||
if ($_POST['nombre'] == "") {
|
||||
$nombre = null;
|
||||
} else {
|
||||
$nombre = $_POST['nombre'];
|
||||
}
|
||||
if ($_POST['clave'] == "") {
|
||||
$clave = null;
|
||||
} else {
|
||||
$clave = $_POST['clave'];
|
||||
}
|
||||
if ($_POST['facultad'] == "") {
|
||||
$facultad = null;
|
||||
} else {
|
||||
$facultad = $_POST['facultad'];
|
||||
}
|
||||
|
||||
echo json_encode($db->query("SELECT * FROM fs_profesores(:nombre, :clave, :facultad) ORDER BY profesor_nombre", [':nombre' => $nombre, ':clave' => $clave, ':facultad' => $facultad]));
|
||||
?>
|
||||
Reference in New Issue
Block a user