Guest User

Untitled

a guest
Feb 5th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. <?php
  2. mysql_connect("localhost","root","") or die("not connected");
  3. mysql_select_db("try") or die("no db found");
  4.  
  5. if(isset($_POST['submit'])){
  6. $username = $_POST('username');
  7. $Password = $_POST('Password');
  8. $query="insert into login(username,Password) values('$username','$Password')";
  9. if(mysql_query($query)){
  10. echo "Data is inserted successfully!";
  11. }
  12.  
  13.  
  14. }
  15. ?>
  16.  
  17. I have encounter few problems and now is the best one as it produce blank page when I click submit button, can you tell me where I could possibly go wrong?
  18.  
  19. $query="insert into login(username,Password) values('$username','$Password');"
  20.  
  21. $query="insert into login(username,Password) values('$username','$Password')";
Add Comment
Please, Sign In to add comment