Created
February 9, 2022 18:25
-
-
Save tadeubdev/25c7b464904c8a7c4892dc62a80d2dd0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function cadastraUsuario($nome, $email, $senha) | |
{ | |
$db = Database::prepare('INSERT INTO usuarios (nome, email, senha) VALUES (:nome, :email, :senha);'); | |
$db->bindParam(':nome', $nome); | |
$db->bindParam(':email', $email); | |
$db->bindParam(':senha', $senha); | |
$db->execute(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment