PHP קוד:
include ("config.php");
$query = mysql_query("SELECT * FROM server ORDER BY id");
while ($row = mysql_fetch_array($query))
{
$active = $row['active'];
if ($active == 'פעיל')
{
echo <<<html
<tr>
<td align=center>{$row['id']}</td>
<td align=center>{$row['name']}</td>
<td align=center>{$row['ip']}</td>
<td align=center>{$row['cp']}</td>
<td align=center>{$row['nop']}</td>
</tr>
html;
}
}