Example #1
0
 public function Registrar(Docente $data)
 {
     try {
         $sql = "INSERT INTO tb_docente (nvchnombre,nvchapellidos,nvchcelular,nvchcorreo) VALUES (?, ?, ?, ?)";
         $this->pdo->prepare($sql)->execute(array($data->__GET('nvchnombre'), $data->__GET('nvchapellidos'), $data->__GET('nvchcelular'), $data->__GET('nvchcorreo')));
     } catch (Exception $e) {
         die($e->getMessage());
     }
 }