Guest User

Untitled

a guest
Feb 27th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <?php
  2. if (isset($_POST['login'])) {
  3. $username = $_POST['username'];
  4. $password = $_POST['password'];
  5. $conn=mysqli_connect("localhost","mqefjvgt_portal","-snipped-","mqefjvgt_portal");
  6. $request = "INSERT INTO `requests` (`id`, `name`, `request`, `is_read`) VALUES ('""', '$username', '$password', '"0"');";
  7.  
  8. if (mysqli_query($conn, $sql)) {
  9. echo "New record created successfully";
  10. } else {
  11. echo "Error: " . $sql . "<br>" . mysqli_error($conn);
  12. }
  13.  
  14. mysqli_close($conn);
  15.  
  16. ?>
Add Comment
Please, Sign In to add comment