This is probably really easy but for some reason I am struggling.
My database table 'configs' has the columns 'config_name' & 'config_value'
and rows such as the following....
TRACK_VISITORS 1
REQUIRE_VALIDATION 0
Basically a config table in a database and the 0 and 1 will represent true and false.
I want to pull the data from the database eg,
SELECT * FROM configs
and I want to iterate through the resulting array but assign the config_value to a variable named after the config_name.
So a new variable $TRACK_VISITORS is created with value 1.
Please help.