Interesting . . . according to the echo, it's attempting to run the SELECT from the top script again, bu this time with no id number at all. I guess the PHP_SELF starts at the top of the page again. I just tried moving this section of code:
PHP Code:
<?php if ($submitentry == "submit") {
$updquery = "UPDATE may2004 SET title='".$newtitle."',entry='".$newentry."' WHERE id='".$entryid."'";
mysql_query($updquery,$lnk) or die(mysql_error());
echo("<p>Your entry has been updated.</p>");
}
?>
To the top with a break command after the entry was updated, but still nothing. Do I need to process the changed values from the form using post somehow?