Hi guys,
At the moment I am trying to rewrite a small peice of software so that there's very little text that's html and it's all coming from the database (so that non-coders can edit all of the site.)
At the moment I have a table in MySQL (config_options) which has two fields (config_name and config_text)
config_name config_text
frontpgtop <p>This is the top front page text</p>
ftontpgbottom <p>This is the bottom front page text</p>
Rather than have to do a MySQL query each time that I want to show some text is there a way that I could dump all of the config options (there's only 15) into an array (?) and then get to them that way.
Something along the lines of being able to use:
echo $config['frontpgtop']
to echo the '<p>This is the top front page text</p>' ?
Any advice appreciated. 🙂