- Joined
- Aug 13, 2010
- Messages
- 35
- Reaction score
- 2
In this thread i will post my scripts and asking for help if need. I don`t mega web developer but i`m study for this and don`t want use bugles websites. If anyone want help me i will only thanks for help. All scripts and comments please in english.
Rankings top 100 :
Rankings top 100 :
PHP:
<?php
$connect = mssql_connect ('#server#','#user#','#password#');
mssql_select_db('muonline','$connect');
$chars2 = mssql_query("Select Top 100 Name,cLevel,Resets,class From Character where ctlcode !=32 order by Resets desc, cLevel desc, Experience desc");
print "
<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" width=\"100%\">
<tbody><tr align=\"center\" bgcolor=\"#FFA500\">
<td><b>#</b></td>
<td><b>".phrase_char."</b></td>
<td><b>".phrase_level."</b></td>
<td><b>".phrase_resets."</b></td>
</tr>
";
$i = 1;
while ($i <= mssql_num_rows($chars2)) {
$row = mssql_fetch_array($chars2);
$rank = $i++;
echo "<tr align=\"center\" >";
echo "<td>".$rank."</td>";
echo "<td>".$row['Name']."</td>";
echo "<td>".$row['cLevel']."</td>";
echo "<td>".$row['Resets']."</td>";
echo "</tr>";
//End
}
?></table>