I have a table I need to update when another table has been update.
In my dtdimports, there is a checkbox for Print, to show that the record has been printed. It is edited by the user in the edit screen.
I also have a timesheet table, and I have a print field here as well.
When the user goes to the edit page in the dtdimports and checks the Print button and saves it, I need the Checkbox in the timesheet table for the same ID to also show that the checkbox for Print its checked.
I have tried this code
8 global $conn;
9 $strSQLInsert = "UPDATE timesheet
10 SET `Print` = 1
11 WHERE dtdimports.reportGuid = timesheet.oldreportguid";
12
13 db_exec($strSQLInsert,$conn);
Can anybody help please?
Cheers
Paul.