[php]Editing records with forms!

Basically i have an administration page where it lists the records and has an edit link next to my record. When i click the link i want it to go to edit.php?id=‘whatever’…and it does. But I get internal server error everytime I click on it…please help:)

editnews.php:

<?php
if($_POST['submit']) { 
$id=$_GET['id'];
$db=mysql_connect("localhost", "user", "pass") or die("Could not connect to localhost"); 
mysql_select_db("alex", $db) or die("Could not find database alex");
$querySQL = mysql_query("UPDATE news SET postdate=CURDATE(), title='".$_POST['title']."', '".$_POST['newstext']."', WHERE id='$id'") or die(mysql_error());
header("Location: managenews.php");
} else {
?>
<form name="editNews" method="post"
action="<? $_SERVER['PHP_SELF']; ?>">
<input type="text" name="title" size="20" /><br /> 
<input type="text" name="newstext" size="20" />
<input type="submit" name="submit" value="submit" />
</form>
<? } ?>