Updating One Table When Updating Another |
1/18/2009 5:39:24 PM |
PHPRunner General questions | |
G
guy author
Hi all, |
|
A
|
alang 1/18/2009 |
Yes that makes sense - there are two events. One for the Add (After record added) and one for the edit (After record updated). Typically your code for the table B events might be something like: |
J
|
Jane 1/20/2009 |
Hi, global $conn,$strTableName; $str = "INSERT INTO TableA (UserNameField,TableNameField,UpdateField) VALUES ('".$_SESSION["UserID"]."','".$strTableName."','field name')"; db_exec($query, $conn);
|