Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $con = mysqli_connect("localhost", "id1376756_db", "0545564887", "id1376756_shlomi205");
- $first_name = $_POST["first_name"];
- $last_name= $_POST["last_name"];
- $email =$_POST["email"];
- $username= $_POST["user_name"];
- $password = $_POST["password"];
- $statement = mysqli_prepare($con, "INSERT INTO user (first_name, last_name, email, user_name, password) VALUES (?, ?, ?, ?,?)");
- mysqli_stmt_bind_param($statement, "siss", $first_name,$last_name, $email, $username $password);
- mysqli_stmt_execute($statement);
- $response = array();
- $response["success"] = true;
- echo json_encode($response);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement