Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User
- {
- public $nome;
- private $email;
- protected $senha;
- public function __construct(){
- }
- public function insert($email, $senha){
- require_once "conexao.php";
- $pdo = conectar();
- $insertSQL = $pdo->prepare('INSERT INTO tbl (valores) VALUES (?)');
- $insertSQL->bindValue(1, $this->lalala(), PDO::PARAM_STR);
- $insertSQL->execute();
- }
- require_once "conexao.php";
- $pdo = connect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement