Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2. $uname = $_POST['uname'];
  3. $pass = $_POST['pass'];
  4. $conn = mysqli_connect('localhost','root','','extra');
  5. if ($con) {
  6. $query = "insert into extra(uname,password) values('$uname','$password')";
  7. $status = mysql_query($query) or die(mysqli_error($con));
  8. if ($status) {
  9. echo 'Inserted sucessful';
  10. }else{
  11. echo 'Insert failed';
  12. }
  13. }else{
  14. echo 'connection failed';
  15. }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement