Hi, I am creating a website with PHP and HTML. Now almost all the pages are static,but i could like to change the content very often . So I need a idea from you people of how to implement it. I have seen in few e-commerce website and they have a section called language variable.? DO anybody have any idea about on how it works? Please advice me. ->I can able to add the content in admin with reference to the unique name. ->Now i need to fetch the details with the help of this unique name,but i dont like to write query individually in all the places . Is there any other good way????
Normally a language variable is not for creating "dynamic content" it is for creating multilingual installations. You would load all your strings at once and instead of a query in each spot you just do it once when the page loads. You are just looking for a CMS. If you have to do it in existing pages the easiest way is to go to where your content in the script, and instead include a text file. Then you put your content in the text file and when you want to change your content you just edit the text files for each section of the site. If you want to have a control panel for it and do it from a login it's the same procedure, but you have to know enough to use a database instead of a text file for your code. Does that make more sense to you?
Thanks .I thought it is completed first.After that I managed it easily. Thanks for your input friend.