Advertisement
Guest User

Untitled

a guest
Jul 8th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. <?php
  2. $email = $_POST['email'];
  3. $password = $_POST['password'];
  4. mysql_connect("******", "*****", "*****");
  5. $query = mysql_query("SELECT * FROM tcp_gr_project.tcp_users WHERE username='$email' AND password='$password'");
  6. @$result = mysql_num_rows($query);
  7. if (($email==NULL) || ($password==NULL))
  8. {
  9. echo "Not completed everything";
  10. }
  11. else
  12. {
  13. if ($result==0)
  14. {
  15. echo "There are no results";
  16. }
  17. else
  18. {
  19. echo "There are ".$result." results";
  20. while ($row = mysql_fetch_assoc($result)) {
  21. echo $row['username'];
  22. echo $row['password'];
  23. }
  24.  
  25. }
  26. }
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement