Advertisement
DiegoWilson

Untitled

Nov 19th, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. class Profesor  {
  5.  
  6.  public $rut;
  7.  public $nombre;
  8.  public $apellido;
  9.  public $curso;
  10.  public $clave;
  11.  
  12.  
  13. public function insertar(){
  14.  
  15. $sql="INSERT INTO profesor (rut, nombre, apellido, curso, clave) VALUES ('{$this->rut}','{$this->nombre}','{$this->apellido}','{$this->curso}','{$this->clave}')"; 
  16.  
  17.   mysqli_query($conn,$sql);
  18.    
  19. }
  20.  
  21.  
  22. }
  23.  
  24.  
  25.  
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement