Custom error message if duplicate foreign key constraints aren't respected January 03, 2019, 01:08:45 PM So for my college project, I decided to give PHPRad a try and I did manage to create my application but if I make an insert into a database with input that doesn't respect foreign key constraints I'll get only a PDO exception. Is there a possible solution to this problem? Ty in advance! Quote Selected
Re: Custom error message if duplicate foreign key constraints aren't respected Reply #1 – January 03, 2019, 02:21:09 PM Sorry the only solution now is to edit code manually and provide custom message on the if query error condition.or Better approach will be to publish your application in Production mode in PHPRad (under publish settings). That will make the errors not to display but log on the "error.log" file.Best regards Quote Selected
Re: Custom error message if duplicate foreign key constraints aren't respected Reply #2 – January 03, 2019, 02:50:19 PM I'm sorry for asking but I can't find "publish settings" can you help me out with it?I'm using classic 2.3 Quote Selected