Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require "conn.php";
- $username = "username";
- $password = "hashedpassword";
- $mysql_qry = "select * from test_social_media_db where username like '$username' and hash '$password';";
- $result = mysqli_query($conn, $mysql_qry);
- if(mysqli_num_rows($result) > 0){
- echo "Welcome";
- }
- else{
- echo"login failed";
- }
- ?>
Add Comment
Please, Sign In to add comment