A
|
alang 10/23/2008 |
In the BeforeDelete event:
|
M
|
mustafa 10/25/2008 |
Hello, I have two tables... tbl_customers (id, name) tbl_location (id, customer_ID, city, state) I have the tables joined on tbl_customers.id > tbl_location.customer_ID I cannot find a way to delete the "detail" records when the "master" record is deleted. I can see in the event area where it should go, but I cannot find any examples of the code... |
W
|
wfcentral author 10/30/2008 |
In the BeforeDelete event:
|
J
|
Jane 10/31/2008 |
Hi, global $conn; $rs = db_query("select MasterID from MasterTable where ".$where,$conn); while($data = db_fetch_array($rs)) { //remove detail records for selected master record $strDelete = "delete from DetailTableName where DetailID=".$data["MasterID"]; db_exec($strDelete,$conn); } |