Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <?php
  2. include("konfiguration.php");
  3. $username = mysql_real_escape_string(stripslashes($_POST["u"]));
  4. $password = mysql_real_escape_string(stripslashes($_POST["p"]));
  5. $usercheck1 = mysql_query("SELECT * FROM game_users WHERE username='$username'
  6. LIMIT 1");
  7. $numuser = mysql_num_rows($usercheck1);
  8. $uinfo = mysql_fetch_array($usercheck1);
  9. mysql_free_result($usercheck1);
  10. ?>
  11.  
  12. <?php
  13. $dhost = "--will enter real here"; # Usually localhost or the IP address of the host
  14. $dusername = "root"; # Database username
  15. $dpassword = "&345346HSD&shdysSDSDadfds&/D/F&SDFhhdsfuyg&/DF/encryption"; # Database password
  16. $ddatabase = "build2"; # Database name
  17.  
  18. $con = mysql_connect($dhost, $dusername, $dpassword) or die ("Cannot connect to the
  19. database");
  20. mysql_select_db($ddatabase, $con) or die ("Cannot select the table");
  21. ?>
  22.  
  23. Undefined index: u in /.build2/loggain.php
  24. on line 8
  25.  
  26. Undefined index: p in /.build2/loggain.php
  27. on line 9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement