Skip to content

Instantly share code, notes, and snippets.

@tadeubdev
Created February 9, 2022 18:25
Show Gist options
  • Save tadeubdev/25c7b464904c8a7c4892dc62a80d2dd0 to your computer and use it in GitHub Desktop.
Save tadeubdev/25c7b464904c8a7c4892dc62a80d2dd0 to your computer and use it in GitHub Desktop.
<?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