Guest User

Untitled

a guest
Feb 1st, 2016
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. <?php
  2.  
  3. $username="dddd";
  4. $password="dddd";
  5. $database="dddd";
  6. $host="dddd";
  7.  
  8. $player_name=$_GET['player_name'];
  9.  
  10. mysql_connect($host,$username,$password);
  11. @mysql_select_db($database) or die( "Nie można odnaleźć bazy danych.");
  12.  
  13. $player_name = stripslashes($player_name);
  14. $player_name = mysql_real_escape_string($player_name);
  15.  
  16.  
  17.  
  18. $query="SELECT * FROM p_Players WHERE Nick='$player_name'";
  19. $result=mysql_query($query);
  20. $i=mysql_num_rows($result);
  21.  
  22. if ($i == 1)
  23. {
  24.  
  25. $Playername=mysql_result($result,0,"Nick");
  26. $Money=mysql_result($result,0,"Kasa");
  27. $Score=mysql_result($result,0,"Score");
  28.  
  29. $text_username = "$Playername"; // This gets the information about player name to be showed in the picture.
  30. $text_score = "$Score"; // Same as above ^^
  31. $text_money = "$Money"; // Same as above ^^
  32. ?>
  33.  
  34. <h3 class="ipsDialog_title"><?php echo "$text_username"; ?> czlonek -gang-</h3><div style="display: block;" class="ipsDialog_content"><div class="ipsWidget ipsWidget_vertical cProfileSidebarBlock ipsBox ipsSpacer_bottom">
  35. <h2 class="ipsWidget_title ipsType_reset"><?php echo "$text_username"; ?></h2>
  36. <div class="ipsWidget_inner ipsPad">
  37.  
  38. <ul class="ipsDataList ipsDataList_reducedSpacing cProfileFields">
  39.  
  40. <li class="ipsDataItem">
  41. <span class="ipsDataItem_generic ipsDataItem_size3 ipsType_break"><strong>Ranga</strong></span>
  42. <div class="ipsDataItem_generic">
  43.  
  44. <span style="color: #FF0000;">Head Admin</span>
  45.  
  46. </div>
  47. </li>
  48.  
  49.  
  50. <li class="ipsDataItem">
  51. <span class="ipsDataItem_generic ipsDataItem_size3 ipsType_break"><strong>Respekt:</strong></span>
  52. <span class="ipsDataItem_generic"><?php echo "$text_score"; ?></span>
  53. </li>
  54.  
  55.  
  56. <li class="ipsDataItem">
  57. <span class="ipsDataItem_generic ipsDataItem_size3 ipsType_break"><strong>Zarejestrowany</strong></span>
  58. <span class="ipsDataItem_generic">2014-10-04 15:26:42</span>
  59. </li>
  60.  
  61. <li class="ipsDataItem">
  62. <span class="ipsDataItem_generic ipsDataItem_size3 ipsType_break"><strong>Ostatnio widziany</strong></span>
  63. <span class="ipsDataItem_generic">2016-01-31 08:43:33 (Wszystkich wizyt 718)</span>
  64. </li>
  65.  
  66. <li class="ipsDataItem">
  67. <span class="ipsDataItem_generic ipsDataItem_size3 ipsType_break"><strong>Czas Gry</strong></span>
  68. <span class="ipsDataItem_generic">6d 8h 49m 29s</span>
  69. </li>
  70.  
  71. <li class="ipsDataItem">
  72. <span class="ipsDataItem_generic ipsDataItem_size3 ipsType_break"><strong>Kilometrów w spedycji</strong></span>
  73. <span class="ipsDataItem_generic">0.00</span>
  74. </li>
  75.  
  76.  
  77. </ul>
  78. </div>
  79. </div>
  80. </div>
  81. <?php
  82. } else echo('<br><br><br><br><center>Ten gracz nie jest zarejestrowany.</center><br><br><br><br>'); // If the username doesn't exist (so the row is 0) then it'll give en error.
  83.  
  84.  
  85. mysql_close();
  86. ?>
Add Comment
Please, Sign In to add comment