Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'db.php';
- class ContratanteModel extends Banco {
- private $nome;
- //Metodos Set
- public function setNome($string){
- $this->nome = $string;
- }
- //Metodos Get
- public function getNome(){
- return $this->nome;
- }
- public function save(){
- exit('chegue aqui');
- $stmt = $this->mysqli->prepare("INSERT INTO testetabela (`nome``) VALUES (?)");
- $stmt->bind_param("s",$this->nome);
- if( $stmt->execute() == TRUE){
- return true ;
- }else{
- return false;
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement