Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. class User
  2. {
  3. public $nome;
  4. private $email;
  5. protected $senha;
  6.  
  7. public function __construct(){
  8.  
  9. }
  10.  
  11. public function insert($email, $senha){
  12. require_once "conexao.php";
  13. $pdo = conectar();
  14.  
  15. $insertSQL = $pdo->prepare('INSERT INTO tbl (valores) VALUES (?)');
  16. $insertSQL->bindValue(1, $this->lalala(), PDO::PARAM_STR);
  17. $insertSQL->execute();
  18. }
  19.  
  20. require_once "conexao.php";
  21. $pdo = connect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement