kann man das in einen Balken Diagram darstellen wenn ja was müste ich in dieser php einfügen
Meine vorstelung wäre
{Name} |==================== | ??%
{Name} |========================= | ??%
{Name} |============= | ??%
{Name} |============== | ??%
das das so ungefähr aussieht
<?php # Copyright by Manuel Staechele # Support www.ilch.de defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: Warstatistik'; $hmenu = 'Warstatistik'; $design = new design ( $title , $hmenu ); $design->header(); echo '<table width=100%" align="center" cellpadding="1" cellspacing="1" border="0"><tr><td>'; echo '<tr class="Cdark"><td colspan="3" align="center"><b>Teilnehmer aller Wars</b></td></tr>'; $ergwar = db_query('SELECT uid, COUNT(*) as anz FROM `prefix_warmember` a INNER JOIN `prefix_wars` b ON a.wid = b.id AND a.aktion = 1 AND b.status = 3 GROUP BY a.uid ORDER BY anz DESC'); $ergGes = db_query('SELECT COUNT(id) FROM `prefix_wars` WHERE status= "3"'); $anzGes = db_result($ergGes,0); while ($r = db_fetch_assoc($ergwar)) { $ergname = db_result(db_query('SELECT name FROM `prefix_user` WHERE id='.$r['uid'].''),0); echo '<tr><td class="Cnorm" align="left" width="20%"><center><FONT COLOR="#32cd32">'.$ergname.'</FONT></center></td><td class="Cmite" align="left" width="20%">hat '.$r['anz'].' Wars </td><td class="Cnorm" align="left" width="20%">von '.$anzGes.' Wars gespielt</td></tr>'; } echo '</td></tr></table>'; $design->footer(); ?>