Advertisement

05.11.2008 at 11:43PM PDT, ID: 23393783 | Points: 500
[x]
Attachment Details

Want to use SQL to allow customized site settings

Asked by sc456a in PHP and Databases, PHP Scripting Language, MySQL Server

Tags:

I'm developing site template software which will have an admin panel that will allow administrators to change certain settings such as background colors, fonts and static images on their site.  I was thinking of using a mySQL database to store the settings, and PHP to perform the front-end duties.  I have a few questions:

-Should I use mySQL for this, or is there a better more efficient way?  I know that SQL is going to cause a greater hardware load than say flat files would.  I'm worried that if the code pulls dozens of items from SQL for every page view that it could quickly consume all the hardware resources of the server.
-Can anyone give me some sample code in PHP that would allow a user to change a field named "font" in a table named "settings" in a database named "site1"?  I'm not really up to snuff on SQL code yet, and a pertinent example would really help me get moving in the right direction.  I learn by doing - not be reading.  Just a simple text area box and a submit button will do perfectly!

Thanks!Start Free Trial
[+][-]05.12.2008 at 12:07AM PDT, ID: 21545052

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 12:47AM PDT, ID: 21545175

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 12:50AM PDT, ID: 21545189

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 12:52AM PDT, ID: 21545195

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 07:35AM PDT, ID: 21547336

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 05:54PM PDT, ID: 21551548

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628