Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $con = mysqli_connect("localhost", "id2903455_mobilny", "Mandat", "id2903455_register");
- $name = $_POST["name"];
- $id = $_POST["id"];
- $station = $_POST["station"];
- $username = $_POST["username"];
- $password = $_POST["password"];
- $statement = mysqli_prepare($con, "INSERT INTO user (name, id, station, username, password) VALUES (?, ?, ?, ?, ?)");
- mysqli_stmt_bind_param($statement, "sisss", $name, $id, $station, $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