I have a PHP page that dynamically generates forms based on the data received from a MySQL database. For example, say there is an entry for the Logo URL, it would be as follows:
configName = MainLogoURL; configValue = "blah";
That's the general idea. The task that I'm struggling with is updating the database, all of the data is sent through a POST request. The end result is like this
Array (
Array ( configName => "MainLogoURL", configValue => "BLAH 2" )
)
And obviously there would be more arrays in that structure for each variable. If there is a more efficient way then could you please let me know (and how to do it) or could you just let me know how to do it.