I think you forgot a } for the if statement from this piece of code:
if (isset($_POST['joke'])) {
$joke = $_POST['joke'];
$sql = "INSERT INTO joke SET joke='$joke', jokesate=CURDATE()";
if (mysql_query($sql)) {
echo '<p>Your joke has been added. </p>';
}
else
{...
Hi Guest we just wanted to alert you to a major change in the forum. We will no longer be allowing the posting of outgoing links. Please use the attachment feature to attach media to your posts.