Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. <?php
  2.  
  3. //make connection
  4. mysql_connect('ukln025.nitrado.net','ni1197930_5_DB','gK4tSWdhCUDF')'
  5.  
  6. //select db
  7. mysql_select_db('ni1197930_5_DB');
  8.  
  9. $sql='SELECT * FROM players '
  10.  
  11. $records=mysql_query($sql);
  12.  
  13.  
  14.  
  15. ?>
  16.  
  17. <html>
  18.  
  19. <head>
  20. <title>MY STS</title>
  21. </head>
  22.  
  23. <body>
  24.  
  25. <table width="600" border="2" cellpadding="1" cellspacing="1">
  26. <tr>
  27.  
  28. <th>UID</th>
  29. <th>name</th>
  30. <th>pid</th>
  31. <th>cash</th>
  32. <th>bankacc</th>
  33. <th>coplevel</th>
  34. <th>mediclevel</th>
  35. <th>civ_licenses</th>
  36. <tr>
  37.  
  38. <?php
  39.  
  40. while($players=mysql_fetch_assoc($records)){
  41.  
  42. echo "<tr>";
  43.  
  44. echo <td>".$Profile['UID']."</td>";
  45.  
  46. echo <td>".$Profile['name']."</td>";
  47.  
  48. echo <td>".$Profile['cash']."</td>";
  49.  
  50. echo <td>".$Profile['bankacc']."</td>";
  51.  
  52. echo <td>".$Profile['coplevel']."</td>";
  53.  
  54. echo <td>".$Profile['mediclevel']."</td>";
  55.  
  56. echo <td>".$Profile['civ_licenses']."</td>";
  57.  
  58. echo "</tr>";
  59.  
  60. }//end while
  61.  
  62. ?>
  63.  
  64.  
  65. </table>
  66. </body>
  67. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement