I have a question regarding some of the ZC3.8 PHP code modules, how they interact with a MySQL database, and how to override data set in this module.
I have observed that the file init_db_config_read.php reads the configuration fields from the database ('cfgkey'), and then sets each with a value from a different field in the database. '(cfgvalue')
That much I understand clearly.
What I wanted to know, because I have a few different ideas in mind, is how I might code an override for a single database config value using additional PHP code.
I figured that after the init_db_config_read.php module sets up the config values by reading and placing them in the 'cfgvalue' corresponding to the 'cfgkey' , I could just assign new values immediately afterwards, using PHP, in a new module.
I am not really familiar with PHP, though. I know what I need to code is something like this (in PHP, of course!) :
if VALUE33 = 5 then 'cfgvalue' (associated with 'CFGkey X ') = "newer"
OK...I didn't mention that I wanted a place a conditional in here as well, to determine whether to reset the 'cfgvalue'.



