Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $message="";
- if(count($_POST)>0) {
- $conn = mysqli_connect("kunet","k1639600","papaya","db_k1639600");
- $result = mysqli_query($conn,"SELECT * FROM user WHERE username='" . $_POST["username"] . "' and password = '". $_POST["password"]."'");
- $count = mysqli_num_rows($result);
- if($count==0) {
- $message = "Invalid Username or Password!";
- } else {
- $message = "You are successfully authenticated!";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement