View Single Post
Old 06-04-2004, 09:58 AM   #6 (permalink)
metazai
Regular Contributor
 
Join Date: Apr 2004
Location: Orange County, CA
Posts: 124
metazai is on a distinguished road
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?
metazai is offline   Reply With Quote