Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Profesor {
- public $rut;
- public $nombre;
- public $apellido;
- public $curso;
- public $clave;
- public function insertar(){
- $sql="INSERT INTO profesor (rut, nombre, apellido, curso, clave) VALUES ('{$this->rut}','{$this->nombre}','{$this->apellido}','{$this->curso}','{$this->clave}')";
- mysqli_query($conn,$sql);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement