Thanks for the swift reply rincewind456.
After studying what you just wrote, I think I may have realised a vital flaw in my plan...
The idea of using the function was to create an easy to use way for me to select and create variables of ALL of the data in a table.
However, this is ultimately wrong because the function will need an argument:
extractSettings('table', $fields, 'field3', 7);
This will of course take just one specified piece of data, not ALL.
Is there a way to create variables from all db data 'en-mass'...
I imagine a way to call this script and then after it has run I will have access to the variables of all data elements.
Any ideas?
MODS, this maybe should be in the 'Newbs' category - i'm punching above my weight!