Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $uname = $_POST['uname'];
- $pass = $_POST['pass'];
- $conn = mysqli_connect('localhost','root','','extra');
- if ($con) {
- $query = "insert into extra(uname,password) values('$uname','$password')";
- $status = mysql_query($query) or die(mysqli_error($con));
- if ($status) {
- echo 'Inserted sucessful';
- }else{
- echo 'Insert failed';
- }
- }else{
- echo 'connection failed';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement