Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($_POST){
- $conn=mysqli_connect('http://127.0.0.1/openserver/phpmyadmin/index.php', 'root', 'root', 'noclip')
- $username=$_POST['username'];
- $email=$_POST['email'];
- $password=md5(md5($_POST['password']));
- $query="insert into users (username,email,password) values ('$username','$email','$password')";
- if(mysqli_query($conn,$query))
- {
- echo $username. ', registered successfully!';
- }
- else()
- {
- echo 'Something went wrong';
- };
- mysqli_close($conn);
- };
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement