200){ die('Shout may not be more then 200 characters!'); } $sql = "INSERT INTO `shoutbox` (`username`, `time`, `shout`, `shout_id`) VALUES ('$username_shout', '$time', '$shout', '$num_shouts');"; mysql_query($sql); } if(isset($_SESSION['username'])){ echo "
"; } else{ echo "You must be logged in to post shouts!

"; } $result = mysql_query("SELECT * FROM shoutbox ORDER BY shout_id DESC"); while($row = mysql_fetch_array($result)){ echo "" . $row['username'] . "
"; echo "" . $row['time'] . "
"; echo "" . $row['shout'] . "

"; } ?>