Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- <?php ?>
- <head>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
- </head>
- <body>
- <?php
- header('Content-type: text/html; charset=ISO-8859-1');
- header('Content-type: text/html; charset=ISO-8859-2');
- header('Content-type: text/html; charset=ISO-8859-3');
- header('Content-type: text/html; charset=ISO-8859-4');
- header('Content-type: text/html; charset=ISO-8859-5');
- header('Content-type: text/html; charset=ISO-8859-6');
- header('Content-type: text/html; charset=ISO-8859-7');
- header('Content-type: text/html; charset=ISO-8859-8');
- header('Content-type: text/html; charset=ISO-8859-9');
- header('Content-type: text/html; charset=ISO-8859-10');
- header('Content-type: text/html; charset=ISO-8859-15');
- $dbhost = 'DRIVER={SQL Server};SERVER=H251267VM\SQLEXPRESS;DATABASE=DB_Tank';
- $dbuser = "sa";
- $dbpass = "DDTankMalay123";
- $connection = odbc_connect($dbhost, $dbuser, $dbpass);
- $query = "SELECT TOP 10 NickName,FightPower FROM Sys_Users_Detail WHERE IsExist = 'True' ORDER by FightPower DESC";
- echo '<table align="center" ><tr>';
- $rank = odbc_exec($connection, $query);
- $i = 1;
- while($db = odbc_fetch_array($rank))
- {
- echo '<td width="50" align="left">'.$i.'</td>';
- echo '<td width="300" align="left">'.$db['NickName'].'</td>';
- echo '<td width="150" align="left">'.$db['FightPower'].'</td>';
- echo '</tr>';
- $i++;
- }
- echo '</table>';
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement