Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>HideNSeek: Cashmod Top 50</title>
- <link rel="stylesheet" href="cs.css" type="text/css">
- </head>
- <?php
- $top = 50;
- $host = "localhost";
- $user = "root";
- $pass = "";
- $dba = "cashmod";
- $db = mysql_connect($host, $user, $pass);
- mysql_select_db($dba, $db);
- ?>
- <body topmargin="0" leftmargin="-2">
- <basefont size="-1" face="MS GOTHIC">
- <table width="700" cellpadding="0" cellspacing="0">
- <tr><td align='center' colspan='13' class='catHead'><span class="genmed"><b>Point-System Ranking TOP 50</b></span>
- </td>
- </tr>
- <tr>
- <td class="row1" align="center">rank</td>
- <td class="row1" align="center">name</td>
- <td class="row1" align="center">cash</td>
- </tr>
- <?
- $i = 1;
- $result = mysql_query("SELECT * FROM cashmod ORDER BY data DESC", $db);
- if ($myrow = mysql_fetch_array($result))
- {
- do
- {
- if($i > $top)
- {
- break;
- }
- printf( "<tr><td align='center'>%s</td><td>%s</td><td align='center'>%s</td></tr>\n", $i, $myrow["name"], $myrow["data"] );
- $i++;
- }
- while ($myrow = mysql_fetch_array($result));
- }
- ?>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement