CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> PHP

 Checking DB errors

Print topic Send  topic

Author Message

Posts: 48
Posted: 07/14/2020, 9:09 AM

I am trying to check db error displaying custom message when there is db sql errors.

found this solution on ccs
Quote :
but i am getting
Quote :
Undefined offset Errors
on php 7.3
// Check if DB Errors contain a Foreign key contrsaint violation when deleting a row  
if (strpos($myForm->DataSource->Errors->Errors[0],"foreign key constraint fails")>0) {  
// Replace with custom message  
$myForm->DataSource->Errors->Errors[0] = "My custom Message";  

is there other solutions to check DB Errors and displaying custom message
View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Web Database

Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.