Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('config/init.php');
- $username = trim( $_POST['username'] );
- $password = trim( $_POST['password'] );
- $mail = trim( $_POST['email'] );
- $sqlQuery = $db->prepare("
- INSERT INTO users(username, password, email)
- VALUES (:name, :password, :mail)
- ");
- $sqlQuery->execute([
- 'name' => $username,
- 'password' => $password,
- 'mail' => $mail
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement