PHPRunner manual
Before deleting a record in the Orders table check for related items in the OrderDetails table.
function BeforeDelete($where) { // Parameters: // where - string with WHERE clause pointing to record to be deleted. $rs = db_query("select * from OrderDetails where ".$where, $conn);
if(db_numrows($rs) > 0) return false; else return true; }