Pero resulta que me aparece la tabla repetida con todos los botones.
No se donde le estoy errando, y estoy bastante olvidado con PHP.
Código PHP:
Gracias a quien me pueda ayudar. Ver original
<?php ?> <html> <head> <title>Página privada alumnos y profesores.</title> </head> <body class="fondo"> <div id="menu"> <asp:Repeater ID="MenuItems" runat="server"> <ItemTemplate> <table align="center"> <tr> <td> <?php $usuario = email; $sql = "SELECT * FROM persona WHERE email=$usuario"; echo "<table border='1px' text-align='center'>"; echo "<tr>"; echo "<td>";echo 'Bienvenido, '.$_SESSION['ncompleto']; echo "</td>"; echo "<td>"; echo '<a href="logout.php" >(Salir)</a> '; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='2' align='center'>Examenes</td>"; echo "</tr>"; echo "<tr>"; echo "<td>"; echo '<input type="button" value="Ver examenes." onclick="window.location.href=\'examenes/verexamenes.php\'"/>'; echo "</td>"; echo "<td>"; echo '<input type="button" value="Agregar examenes." onclick="window.location.href=\'examenes/altas/formAltasDeExamenes.php\'"/>'; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='2' align='center'>Personas</td>"; echo "</tr>"; echo "<tr>"; echo "<td>"; echo '<input type="button" value="Ver personas." disabled="true"/>'; echo "</td>"; echo "<td>"; echo '<input type="button" value="Agregar personas." onclick="window.location.href=\'persona/altaspersona/altapersona.htm\'"/>'; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='2' align='center'>Profesores</td>"; echo "</tr>"; echo "<tr>"; echo "<td>"; echo '<input type="button" value="Ver profesores." disabled="true"/>'; echo "</td>"; echo "<td>"; echo '<input type="button" value="Agregar profesores." disabled=tue/>'; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='2' align='center'>Alumnos</td>"; echo "</tr>"; echo "<tr>"; echo "<td>"; echo '<input type="button" value="Ver alumnos." disabled="true"/>'; echo "</td>"; echo "<td>"; echo '<input type="button" value="Agregar alumnos." disabled=tue/>'; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='2' align='center'>Grupo</td>"; echo "</tr>"; echo "<tr>"; echo "<td>"; echo '<input type="button" value="Ver grupos." disabled="true"/>'; echo "</td>"; echo "<td>"; echo '<input type="button" value="Agregar grupos." disabled=tue/>'; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='2' align='center'>Instituto.</td>"; echo "</tr>"; echo "<tr>"; echo "<td>"; echo '<input type="button" value="Ver instituto." disabled="true"/>'; echo "</td>"; echo "<td>"; echo '<input type="button" value="Agregar instituto." disabled=tue/>'; echo "</td>"; echo "</tr>"; echo "</table>"; } echo "<div class='fecha'>"; echo "Hoy es "; echo "de "; echo "de "; echo "</div>"; }else{ echo '<img src=materiales/error.jpg width=50px height=50px></br>Usted no se ha logueado correctamente. Por favor hagalo clickeando <a href="login.php">aqui.</a></p>'; } ?> </td> <td align="rigth"> </td> </tr> </table> </ItemTemplate> </asp:Repeater> </div> </body> </html>