-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access to db in handler #919
Comments
Hi, this seems like a duplicate of #751. |
Thank you for the hint, will have a look at the solution. Anyway, thanks for the quick response |
Yeah, that will be some work... and there is another solution with the VariableStore... did you try that? |
I tried it and it works great.
|
Hi, I'm not really a PHP guru.
I would like to check if a field called "oid" is currently null while updating. If the actual value in the DB is null, an update should be possible, otherwise no update should be made.
I think the validation handler would be the right place for this. My problem is how to access the database from the handler?
Can I reuse any function without opening a complete new connection to the db?
Or should I put it in another place? If so where?
Hope you can help me.
The text was updated successfully, but these errors were encountered: