Пример #1
0
         }
     }
     if ($controller == 3) {
         // Registra
         // if(isset($correo)){
         // 	  echo 111;
         if (isset($_POST)) {
             $registro = $dao->crearNuevoUsuario($_POST);
         }
         // }
     }
 }
 //if(isset($_POST['carrera'])){
 //
 if (isset($_GET['accion']) == "mostrar") {
     $registro = $dao->mostrarUsuarios(999);
     //echo $registro;
     echo json_encode($registro);
 }
 if (isset($_GET['usuario'])) {
     //session_start();
     //if(isset($_SESSION['k_se'])){
     $registro = $dao->datosUsuario($_GET['usuario']);
     //echo $registro;
     echo json_encode($registro);
     //}
 }
 if (isset($_GET['accion']) == "buscar") {
     if (isset($busca)) {
         if (isset($_POST['busqueda'])) {
             $busca = $_POST['busqueda'];