Ingen beskrivning

login.php 354B

12345678910111213141516171819202122232425
  1. <?php
  2. include "config.php";
  3. $email = $_POST['email'];
  4. $password = $_POST['password'];
  5. $query = "INSERT INTO Users (email, password) VALUES ('$email', '$password')";
  6. $results = mysqli_query($connect, $query);
  7. // echo $results;
  8. if($results == True)
  9. {
  10. }
  11. else {
  12. echo "User not registered";
  13. }
  14. ?>