Advertisement
Guest User

Untitled

a guest
Apr 17th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?php
  2. if($_POST["action"] == "login")
  3. {
  4. $query= $db->query("SELECT * FROM mytable WHERE BINARY username ='".$_POST["username"]."' AND password =".$_POST["password"]."'");
  5. if($db->num_rows($query) > 0)
  6. {
  7. echo "succefully loginned";
  8. }
  9. else
  10. {
  11. echo"wrong username/password";
  12. }
  13. }
  14. <?
  15. <form method="post">
  16. Username : <input type="text" name="username">
  17. Password : <input type="text" name="password">
  18. <input type="button" value="Login">
  19. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement