Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['submit'])){
- $username = $_POST['username'];
- $password = $_POST['password'];
- $ID = '0';
- while($ID == '1' && $ID < '1000'){
- $ID++;
- }
- $connect = mysqli_connect("localhost","root","","coklica") or die(mysql_error());
- if($connect){
- }else{
- echo 'jebi ga sta da ti kazem';
- }
- $query = "INSERT INTO `users`(`ID`, `username`, `password`) VALUES ('$ID', '$username', '$password')";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement