Hi All:
I have 2 php files feeding one MySql record.
I have an INSERT query in file1.php working fine, it then sends me to a highly animated form file2.php that calls a processor.php file.
The processor.php file needs to update the mySql record.
I have tested the processor file by using a MySQL INSERT query and it all works fine, however, when I use the following code (my 5th query version for this), the php file fails telling me I have a mySql error.
My objective is to read teh session varialbe to locate the MySql record as the record was created with file1.php.
$_SESSION['Email'] = "Email";
$sql="UPDATE roi SET (software, patients, reimbursement, rejection) VALUES ('$_POST[software]','$_POST[patients]','$_POST[reimbursement]','$_POST[rejection]') WHERE Email='$_SESSION[Email]'";
if (!mysql_query($sql))
{
die('Error: ' . mysql_error());
}
If someone could please assist me with this I would appreciate it very much.
Best Regards,
dennishall