Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $con=mysqli_connect("localhost","my_user","my_password","my_db");
- // Check connection
- if (mysqli_connect_errno()){
- echo "Failed to connect to MySQL: " . mysqli_connect_error();
- }
- $username = $_REQUEST['username'];
- $password = $_REQUEST['password'];
- $tsd=mysqli_query($con, "SELECT * FROM `admin` WHERE `username` = '$username' AND `password` ='$password'")or die("Problem with the query");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement