session_start(); $approved = $_SESSION['approved']; if ($approved != 'yes') { header ("Location: loginform.html"); } include 'nav.html'; include 'connect.php'; $submit = $_POST['submit']; if($submit) { $sql = mysql_query("INSERT INTO topics (topicname) VALUES ('$topic')"); } $marco = mysql_query("select * from topics order by topicid desc"); $topic = $_POST['newtopic']; $self = $_SERVER['PHP_SELF']; echo "
"; while ($row = mysql_fetch_array($marco)) { $id = $row[0]; $name = $row[1]; echo "$name