Advertisement
Guest User

Untitled

a guest
Sep 21st, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4.  
  5.  
  6.  
  7. if(isset($_POST['submit'])){
  8. $username = $_POST['username'];
  9. $password = $_POST['password'];
  10. $ID = '0';
  11. while($ID == '1' && $ID < '1000'){
  12. $ID++;
  13. }
  14.  
  15. $connect = mysqli_connect("localhost","root","","coklica") or die(mysql_error());
  16. if($connect){
  17.  
  18. }else{
  19. echo 'jebi ga sta da ti kazem';
  20. }
  21. $query = "INSERT INTO `users`(`ID`, `username`, `password`) VALUES ('$ID', '$username', '$password')";
  22.  
  23.  
  24.  
  25.  
  26. }
  27.  
  28.  
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement