1
Working on a form to Update exiting entries in a table.... really wracking my brain cause im using a form with the values set to the existing tables.. and all that works... its the output of the form and the update that im having a problem with.... The output variables arent transfering to my update query.... well heres the code...
Here is the FORM...this is PART of the whole file.... this part all works.. its the action thats not..
{
$edit .= "
Here is the file set to the Forms Action... its my POST variable that arent working write... its updating and everything.. but its updating to {$_POSTBLAHBLAH and not the ACTUAL content..
$dbname = "thisgene_sitearticles"; // Place the database name here
$tablename = "encounters"; // Table name here
$dbconnect = mysql_connect ("localhost", "thisgene_porter", "102073") or die(mysql_error());
$db = @mysql_select_db($dbname, $dbconnect);
$sql = 'UPDATE `encounters` SET `script_title` = '{$_POST[script_title]}',';
$sql .= ' `script` = '{$_POST[script]}',';
$sql .= ' `content_title` = '{$_POST[content_title]}',';
$sql .= ' `content` = '{$_POST[content]}' WHERE `id` = '11' LIMIT 1 ;';
$sql .= '';
$result = @mysql_query($sql, $dbconnect) or die(mysql_error());
echo "Entry Updated | Click HERE to return to the Menu."
?>
PLEASE help lol