Eiolon Posted January 4, 2007 Share Posted January 4, 2007 I have a table called LOCATIONS and a table called HARDWARE.Basically, I want users to be able to delete locations from the locations table but ONLY if the location isn't being used in the hardware table. Any idea on how to pull this off? Thanks! Link to comment https://forums.phpfreaks.com/topic/32850-prevent-deletion-if-data-exists-in-other-table/ Share on other sites More sharing options...
trq Posted January 4, 2007 Share Posted January 4, 2007 Run a select statement on the hardware table first, if you dont find a match, you can then run the delete query also. Link to comment https://forums.phpfreaks.com/topic/32850-prevent-deletion-if-data-exists-in-other-table/#findComment-152922 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.