Advertisement
Guest User

Untitled

a guest
Aug 7th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?
  2. $username="team14";
  3. $password="team14";
  4. $database="team14";
  5.  
  6. $first=$_POST['first'];
  7. $last=$_POST['last'];
  8. $phone=$_POST['phone'];
  9. $mobile=$_POST['mobile'];
  10. $email=$_POST['email'];
  11.  
  12.  
  13. mysql_connect(localhost,$username,$password);
  14. @mysql_select_db($database) or die( "Unable to select database");
  15.  
  16. $query = "INSERT INTO contact VALUES ('','$first','$last','$phone','$mobile','$email')";
  17. mysql_query($query);
  18.  
  19. mysql_close();
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement