Advertisement
Guest User

Untitled

a guest
Aug 11th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <?php
  2. @include("conexao.php");
  3. $user = $_REQUEST['name'];
  4. $pass = $_REQUEST['pass'];
  5. $max = 3;
  6.  
  7. $code = "SELECT * FROM HighScore ORDER BY score DESC LIMIT 0, $max";
  8. $exc_code = mysql_query($code);
  9.  
  10. $ln = mysql_num_rows($exc_code);
  11.  
  12. for ($i=0; $i < $ln; $i++) {
  13. $row = mysql_fetch_array($exc_code);
  14.  
  15. echo $row['name'] . "|" . $row['pass']. "|";
  16. }
  17.  
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement