i need php code for Player Type (player type should be detected "s" flag for golden player and "t" flag for silver player and "n" flag for administrator) and Absence Bar should be only for silver player and golden player.Please check the picture to check example.
PHP Code:
<html>
<head>
<style type="text/css">
<!--
td{font-size: 9pt;}
center{display: none;}
-->
</style>
<link rel="stylesheet" href="cs.css" type="text/css">
</head>
<?php
$db = mysql_connect("localhost","amxx","amx");
mysql_select_db("amxmodx",$db);
?>
<body topmargin="0" leftmargin="-2">
<basefont size="-1" face="MS GOTHIC">
<table width="700" cellpadding="0" cellspacing="0">
<tr><td colspan="13" class="catHead"><span class="genmed"><b>Played Time TOP 100</b></span>
</td>
</tr>
<tr>
<td class="row1" align="center">Rank</td>
<td class="row1" align="center">Name</td>
<td class="row1" align="center">Played Time</td>
<td class="row1" align="center">Last Activity</td>
<td class="row1" align="center">Inactive Days</td>
</tr>
<?php
$i = 1;
$result = mysql_query("SELECT * FROM played_time ORDER BY playedtime DESC LIMIT 100",$db);
if ($myrow = mysql_fetch_array($result)) {
do{
list($a, $b, $c) = explode('-', $myrow["date"]);
printf("<tr><td align=right>%s</td><td align=center>%s</td><td align=center>%s</td><td align=center>%s</td><td>%s</td></tr>\n",$i,$myrow["name"],$myrow["playedtime"],$myrow["date"],date("d")-$c);
$i++;
} while ($myrow = mysql_fetch_array($result));
}
?>
</table>
</body></html>