Ganz einfach: du hast bei:
[<?php if(!isset($_SESSION['UserID']))
{
echo "<tr>
<td width=\"14\"> </td>
<td width=\"158\"><a href=\"login.php\">login</a> </td>
</tr>";
}
else
{
echo " <tr>
<td width=\"14\"> </td>
<td width=\"158\"><a href=\"logout.php\">logout</a> </td>
</tr> ";
}
?> ...die semikons vergessen!