PHP beginner |
|
jep al gemaakt;)
<?
$edit = mysql_query("SELECT status,id,user,tijd,naam, achternaam,avatar FROM leden ");
while($record = mysql_fetch_object($edit)) {
if(time() < $record->tijd)
{
echo "<table width='300' border='0'>
<tr>
<td width='250'><b>leden online:</b> </td>
<td width='80'><b>sinds:</b></td>
<td width='50'><b>status:</b></td>
</tr>
<tr>
<td>".$record->user."</td>
<td>".date("H:i:s", $record->tijd-240)."</td>
<td>";
if($record->status =="1")
{
echo "webmaster";
}
elseif($record->status =="2")
{
echo"super moderator";
}
elseif($record->status == "3")
{
echo"moderator";
}
elseif($reocrd->status == "4")
{
echo"lid";
}
echo"</td> </tr></table>";
}
}
?>
<? $edit = mysql_query("SELECT status,id,user,tijd,naam, achternaam,avatar FROM leden "); if(time() < $record->tijd) { echo "<table width='300' border='0'> <tr> <td width='250'><b>leden online:</b> </td> <td width='80'><b>sinds:</b></td> <td width='50'><b>status:</b></td> </tr> <tr> <td>".$record->user."</td> <td>".date("H:i:s", $record->tijd-240)."</td> <td>"; if($record->status =="1") { } elseif($record->status =="2") { } elseif($record->status == "3") { } elseif($reocrd->status == "4") { } echo"</td> </tr></table>"; } } ?>
|