by Great Insanely from Weberdev
If portability is not your biggest concern, ie, you know that your web app is going to reside mainly on a server you control, then you might want to look into using the InnoDB table type in MySQL which allows foreign key relationships.
Any PHP developer worth his/her salt would jump at the prospect of not having to manage ‘cleanup’ queries after table updates.