"before_insert"

Questions"before_insert"
juliano gomes weber asked 10 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
Juliano

1 Answers
Abu Ghufran answered 10 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 + 0 =

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?