Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <?php
  2. $i_username = $_POST['i_username'];
  3. $i_email = $_POST['i_email'];
  4. $i_password =$_POST['i_password'];
  5.  
  6. // Database Connection Information
  7. $db_server = "localhost";
  8. $db_username = "root";
  9. $db_password = "";
  10. $db_database = "db_login";
  11. $connect = mysqli_connect($db_server, $db_username, $db_password, $db_database);
  12. $query = "INSERT INTO `t_users`(`Username`, `Password`, `Email`) VALUES ('$i_username','$i_password','$i_email')";
  13. $result = mysqli_query($connect, $query);
  14. header ('location: index.php');
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement