suppress MySQL error messages and replace with my error messege in update/delete

Questionssuppress MySQL error messages and replace with my error messege in update/delete
Senai asked 12 years ago

Hi , I have written on_update and on_delete functions that I use for validity checking. And I want to suppress the error messages sent from MySQL and display my own error message from this functions. I kindly request for your support in this.
thanks

1 Answers
Abu Ghufran answered 12 years ago

Hello,

If you wish to change the SQL errors, you can turn them off using following setting.

$g=new jqgrid();

$g->debug = 0;
$g->error_msg="Some issue occured";

For custom message at server validation, refer demos/editing/server-validation.php

Regards,

Your Answer

17 + 19 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?