$this->nombre = $nom; $this->apellido = $ape; $this->emailp = $emp; $this->emailc = $emc; $this->skype = $sky; $this->direccion = $dir; $this->telefono = $tel; $this->celular = $cel; $this->fechae = $fee; $this->fechac = $fec; $this->contactoe = $coe; $this->parentezco = $par; $this->telefonoc = $tep; $this->eps = $eps; $this->cargo = $car; $this->proyectoa = $pro; } public function pruebas() { //echo $this->cedula; } public function registrar() { $mysql = new Mysql(); $mysql->conexion(); $consulta = $mysql->consulta("INSERT INTO empleados values ('{$this->cedula}','{$this->nombre}','{$this->apellido}','{$this->emailp}','{$this->emailc}','{$this->skype}','{$this->direccion}','{$this->telefono}','{$this->celular}','{$this->fechae}','{$this->fechac}','{$this->contactoe}','{$this->parentezco}','{$this->telefonoc}','{$this->eps}','{$this->cargo}','{$this->proyectoa}')"); } } $emp = new employee('$this->cedula', '$this->nombre', '$this->apellido', '$this->emailp', '$this->emailc', '$this->skype', '$this->direccion', '$this->telefono', '$this->celular', '$this->fechae', '$this->fechac', '$this->contactoe', '$this->parentezco', '$this->telefonoc', '$this->eps', '$this->cargo', '$this->proyectoa'); $emp->pruebas(); $emp->registrar();