You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Thank you for the hint, will have a look at the solution.
I think the idea from pat123456 is a good one, to define the handlers outside of the config section. But it may be a huge rewrite for you? Would just be a clean solution without the need to other modifications.
Yesterday I just made a quick&dirty workaround with a get_file_content to the same object I want to modify :)
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: