Advertisement
Guest User

g

a guest
Jan 29th, 2020
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2. $conn = mysqli_connect("localhost","id12232563_rajan", "bardangrg1", "id12232563_hopitalnearby");
  3. $pName=$_GET['name'];
  4. $pContact=$_GET['contact'];
  5. $pEmail=$_GET['email'];
  6. $pPassword=$_GET['password'];
  7. $query = "insert into user (name,contact,email,password ) values ('$pName','$pContact','$pEmail','$pPassword')";
  8. if(mysqli_query($conn, $query))
  9. {
  10. echo "successfully registered";
  11. }
  12. else
  13. {
  14. echo "failed to registered";
  15. }
  16. mysqli_close($conn);
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement