Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "sql208.epizy.com";
- $database = "epiz_23938083_users";
- $username = "epiz_23938083";
- $password = "897pYRJDu0FTlx";
- // Create connection
- $conn = mysqli_connect($servername, $username, $password, $database);
- // Check connection
- if (!$conn) {
- die("Connection failed: " . mysqli_connect_error());
- }
- $first = $_GET['first'];
- $last = $_GET['last'];
- $email = $_GET['email'];
- $password = $_GET['password'];
- $sql = "INSERT INTO user_information (first, last, email, password) VALUES ('$first', '$last', '$email', '$password')";
- if (mysqli_query($conn, $sql)) {
- echo "New record created successfully";
- } else {
- echo "Error: " . $sql . "<br>" . mysqli_error($conn);
- }
- mysqli_close($conn);
- header("Location: http://onchat.ml")
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement