Advertisement
Guest User

Untitled

a guest
Jul 8th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1.  
  2.  
  3. <center><h1> Top 30 Players<br /> </h1>
  4. <?php
  5. $host = '109.169.62.251'
  6. $user = 'sa'
  7. $pass = '123456'
  8.  
  9. $myDB = "rxjhgame";
  10. $link = mssql_connect($host, $user, $pw)
  11. or die("Couldn't connect to SQL Server on HeroGaming");
  12. if (!$link)
  13. {
  14. die('Could not connect: ' . mysql_error());
  15. }
  16. mssql_select_db($myDB, $link);
  17.  
  18. $query = "SELECT TOP 30
  19. FLD_LEVEL AS FLD_LEVEL,
  20. FLD_NAME AS FLD_NAME,
  21. FLD_JOB AS FLD_JOB FROM tbl_xwwl_char where J9 = 0
  22. ORDER BY FLD_LEVEL DESC
  23. ";
  24. $result = @mssql_query($query);
  25.  
  26.  
  27. echo "<table border='0'>";
  28. echo "<tr><th width=1>Level </th> <th width=40%>Character</th> <th width=20%>Job</th> </tr>";
  29.  
  30. $row = mssql_fetch_array($result) or die(mysql_error());
  31. echo "<tr><td bgcolor=''>";
  32. echo $row['FLD_LEVEL'];
  33. echo "</td><td bgcolor=''>";
  34. echo $row['FLD_NAME'];
  35. echo "</td><td bgcolor=''>";
  36. include ('inc/class.php');
  37. echo "</td></tr>";
  38.  
  39. echo "</table>";
  40.  
  41. ?>
  42.  
  43. </center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement