I was wondering if people could give me some pointers.
On occasion I have lists that do not show child records but have the option to delete records.
If a user attempts to delete a record with a child record (and referential integrity is enforced in the database) a rather ugly php error is thrown.
Not really an error on phprunners side but any ideas how to trap this error and gracefully indicate to the user that deletion is not possible unless the child records are first deleted.
Assuming I cannot switch off referential integrity.