123456789101112131415161718192021222324252627282930313233 |
- <?php
- include "config.php";
-
-
- // $email = mysqli_real_escape_string($connect, $POST['email']);
- // $password = mysqli_real_escape_string($connect, $POST['password']);
-
-
- $email = $_POST['email'];
- $password = $_POST['password'];
-
-
- $query = "INSERT INTO Users (email, password) VALUES ('$email', '$password')";
-
- // var_dump($query);
- // echo "Despues\n";
-
- $results = mysqli_query($connect, $query);
-
- // var_dump($results);
-
-
-
- echo $results;
-
- if($results == True)
- {
- echo "user registered";
- }
- else {
- echo "user not registered";
- }
- ?>
|