<?
$gebruikersid = $_GET['id'];
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td colspan=\"2\" class=\"tab5\" valign=\"top\"><span class=\"pink\">Historie</span></td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan=\"2\">";
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
$aaa = mysql_query("SELECT * FROM historie WHERE user_id = '".$gebruikersid."' ORDER BY datee ASC") or die(mysql_error());
$nofiles = @mysql_num_rows($aaa);
if ($nofiles == 0){
echo "<tr>";
echo "<td class=\"border_down\">This user have no logs!</td>";
echo "</tr>";
}else{
$bbb = mysql_query("SELECT datee,changee,explanation FROM historie WHERE user_id = '".$gebruikersid."' ORDER BY datee ASC") or die(mysql_error());
while ($list = mysql_fetch_object($bbb)) {
$date = $list->datee;
$change = $list->changee;
$explanation = $list->explanation;
echo "<tr>";
echo "<td width=\"300\" class=\"border_down\"><a href=\"?p=channels2&id=".$gebruikersid."\"> <b>Datum</b></a></td>";
echo "<td width=\"300\" class=\"border_down\"><a href=\"?p=profiles&id=".$gebruikersid."\"> <b>Historie log</b></a></td>";
echo "<td width=\"300\" class=\"border_down\"><a href=\"?p=profiles&id=".$gebruikersid."\"> <b>Level (<a href=\"?.php\">?</a>)</b></a></td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"300\" class=\"border_down\"><a href=\"?p=channels2&id=".$gebruikersid."\"> <b>".$date."</b></a></td>";
echo "<td width=\"300\" class=\"border_down\"><a href=\"?p=profiles&id=".$gebruikersid."\"> <b>".$change."</b></a></td>";
echo "<td width=\"300\" class=\"border_down\"><a href=\"?p=profiles&id=".$gebruikersid."\"> <b>".$explanation."</b></a></td>";
echo "</tr>";
}
}
echo "</table>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<br>";
echo "<br>";
echo "<br>";
echo "<br>";
?>