juliano gomes weber asked 6 years ago

Can i make a validation before insert? Example:

on before_insert:

1) Get config values from BD
2) Compare this values
3) if comparison is not valid, abort insert

thank you very much

1 Answers
Abu Ghufran answered 6 years ago

Yes, you can refer working demo code: demos/editing/server-validation.php.

It uses on_insert event. It checks in db if client_id exist or not. and show error on duplicate.

Your Answer

16 + 7 =

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 / 5. Vote count:

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

Let us improve this post!