[скрипт] у кого есть скрипт для статуса героя
4 replies195 viewsCurrently viewing: 1
· 02/26/2009, 02:45 PM
статус героя???
или статистику кто герой на сервере???
если статистику могу дать...
0
· 02/27/2009, 01:51 PM
всё всем спс сам замудрил скрипт кому нада вот он он для мой виб
Код
<?php
include("module/stat-menu.php");
$sql = mysql_query("SELECT class_id,char_name,count FROM heroes WHERE count >=1 ORDER BY count DESC");
print '
<br><b><center>..:: Статус Героя::..</center></b><br><hr>
<table>
<thead>
<tr >
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th class="sortedColumn"></th>
</tr>
</thead>
<tbody id="TblBdy">
';
$configdb = array(
"host" => "свои данные",
"user" => "свои данные",
"pass" => "свои данные",
"base" => "свои данные",
);
$link = mysql_connect($configdb["host"],$configdb["user"],$configdb["pass"]) or die("MySQL error");
mysql_select_db($configdb["base"],$link);
echo "
<table width=100% border=1>
<td width=100% height=34 colspan=2 align=center class=\"content\" style=\"font-size:20px; font-family:verdana; color:#00ff00;\"><b></b>
</td>
</tr>
<tr>
<td style=\"font-size:12px; border:3px #00ff00 solid;\"><center><b>Имя игрока</b></center></td>
<td style=\"font-size:12px; border:3px #00ff00 solid;\"><center><b>Побед</b></center></td>
<td style=\"font-size:12px; border:3px #00ff00 solid;\"><center><b>скока дней будет героем</b></center></td>
</tr>
";
$activity = mysql_query("SELECT class_id,char_name,count,played FROM heroes WHERE count >=1 ORDER BY count DESC");
while($row = mysql_fetch_array($activity)) {
echo "<tr><td width=25% align=center>".$row['char_name']."</td>";
echo "<td width=25% align=center>".$row['count']."</td>";
echo "<td width=25% align=center>".$row['played']."</td>";
}
echo "</table>";
mysql_close($link);
?>
include("module/stat-menu.php");
$sql = mysql_query("SELECT class_id,char_name,count FROM heroes WHERE count >=1 ORDER BY count DESC");
print '
<br><b><center>..:: Статус Героя::..</center></b><br><hr>
<table>
<thead>
<tr >
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th class="sortedColumn"></th>
</tr>
</thead>
<tbody id="TblBdy">
';
$configdb = array(
"host" => "свои данные",
"user" => "свои данные",
"pass" => "свои данные",
"base" => "свои данные",
);
$link = mysql_connect($configdb["host"],$configdb["user"],$configdb["pass"]) or die("MySQL error");
mysql_select_db($configdb["base"],$link);
echo "
<table width=100% border=1>
<td width=100% height=34 colspan=2 align=center class=\"content\" style=\"font-size:20px; font-family:verdana; color:#00ff00;\"><b></b>
</td>
</tr>
<tr>
<td style=\"font-size:12px; border:3px #00ff00 solid;\"><center><b>Имя игрока</b></center></td>
<td style=\"font-size:12px; border:3px #00ff00 solid;\"><center><b>Побед</b></center></td>
<td style=\"font-size:12px; border:3px #00ff00 solid;\"><center><b>скока дней будет героем</b></center></td>
</tr>
";
$activity = mysql_query("SELECT class_id,char_name,count,played FROM heroes WHERE count >=1 ORDER BY count DESC");
while($row = mysql_fetch_array($activity)) {
echo "<tr><td width=25% align=center>".$row['char_name']."</td>";
echo "<td width=25% align=center>".$row['count']."</td>";
echo "<td width=25% align=center>".$row['played']."</td>";
}
echo "</table>";
mysql_close($link);
?>
0
Topic is closed for replies



