Advertisement
Guest User

Untitled

a guest
Jun 13th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3.   <head>
  4.   <meta http-equiv="content-type" content="text/html; charset=windows-1250">
  5.   <title>BARAJA.cz</title>
  6.   </head>
  7.   <body>
  8. <?php
  9.  
  10. $username = $_POST['username'];
  11. $password = $_POST['password'];
  12.  
  13. if ($username&&$password)
  14. {
  15.  
  16. $conect = mysql_conect("localhost","baraja3626","------") or die("Couldn´t connect!");
  17. mysql_select_db("baraja3327") or die("Couldn´t find db");
  18.  
  19. $query = mysql_query("SELECT * FROM users WHERE username='$username'");
  20.  
  21. $numrows = mysql_num_rows($guery);
  22.  
  23. echo intval($numrows);
  24.  
  25.  
  26. }
  27. else
  28.   die("Není vyplněno uživatelské jméno nebo heslo, prosím opravte!");
  29.  
  30.  
  31.  
  32.  
  33.  
  34. ?>
  35.   </body>
  36. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement