Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_POST['submit'])){
- echo "yes we got it";
- }
- $username = $_POST['username'];
- $password = $_POST['password'];
- $connection = mysqli_connect('127.0.0.1','root','','weigo_login');
- if($connection){
- echo "successful";
- }else{
- echo "error";
- }
- $query = "INSERT INTO login users(username,password) VALUES('$username','$password')";
- $result mysqli_query($connection,$query);
- if(!$result){
- die('Query FAILED' . mysqli_error());
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement