HughbertD Posted March 13, 2008 Share Posted March 13, 2008 Hi all, I was wondering if there was a way of catching the foreign key constraint error from MYSQL in PHP. I want to inform the user, that they need to change the values of a row in order to delete it. Thanks for any help Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted March 13, 2008 Share Posted March 13, 2008 you could try to execute the query and load any errors using mysql_error(), but i would run a select query to check instead of having mysql return an error. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.