Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $username = $_POST["username"];
- $email = $_POST["email"];
- $password = $_POST["password"];
- $statement = mysqli_prepare($con, "INSERT INTO user (username, email, password) VALUES (?, ?, ?)");
- mysqli_stmt_bind_param($statement, "sss", $username, $email, $password);
- mysqli_stmt_execute($statement);
- $response = array();
- $response["success"] = true;
- print_r(json_encode($response));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement