I am trying to create a table, that is shown if you are logged in with text WITHIN a table column! So I need to use echo two times, and I read that you need to use a while statement to do this! But it displays the whole while statement, and not just "Sandwich Fun".
if(isset($_SESSION["loggedin"])) {
echo "You are not logged in.";
} else {
echo "<!DOCTYPE html> <!-- 5 -->
<html>
<head>
<title>Index - Sandwich Fun™</title>
<meta charset=\"UTF-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
<meta name=\"robots\" content=\"noindex\">
<style type=\"text/css\">
<!--
.smorgass { position: absolute; top: 0; left: 0; width: 100%; }
table, th, td { border: 1px solid black; }
-->
</style>
</head>
<body>
<table height=\"500\" class=\"smorgass\">
<tr><th colspan=\"3\">while ( 1 === 1 ) {
echo \"Sandwich Fun™\";
}</th></tr>
<tr><td></td><td></td><td></td</tr>
<tr><td></td></tr>
</table>
</body>
</html>"; } ?>
What do I do?