custom errormessage if SQL query fails

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
Chappie
Registered User
Posts: 37
Joined: Fri Jan 26, 2018 3:52 am

custom errormessage if SQL query fails

Post by Chappie » Mon Nov 11, 2019 1:16 am

It it possible to make phpBB spit out a custom-errormessage if a Query fails?

I tried this, but I still get the regular SQL errormessage.


$db->sql_query($queryX) or die("ERROR: somefile, some function");

Post Reply

Return to “phpBB Custom Coding”