oha055 Posted October 27, 2011 Share Posted October 27, 2011 Hi! So I'm fairly new to PHP, and am currently making a website from scratch including as much PHP functionality as I can for learning purposes. As I have just finished making a blog function, I started to wonder. Is it normal to store every part of a website in a the database? The blog part of the website I just created has of course all the differet blog entries stored in a table in the db, but is it also normal practice to store about, contact etc. in tables too? Or should categories like these be created using brand new .php documents? I am in the progress of making a page controller and thought I should clearify things first, before I go any further. This question may seem stupid, but I don't know alot about what the normal practices of doing things like these in php are. Anyways, hope someone can help me out! Quote Link to comment https://forums.phpfreaks.com/topic/249881-which-part-of-website-to-store-in-database/ Share on other sites More sharing options...
trq Posted October 27, 2011 Share Posted October 27, 2011 You can do it however you like. Once you start storing different categories of data, your moving into the land of a CMS application. Quote Link to comment https://forums.phpfreaks.com/topic/249881-which-part-of-website-to-store-in-database/#findComment-1282561 Share on other sites More sharing options...
jcbones Posted October 27, 2011 Share Posted October 27, 2011 Before you start storing to much data in the database, you might want to learn about database normalization. you will be glad you did, because it will save a ton of work later. Quote Link to comment https://forums.phpfreaks.com/topic/249881-which-part-of-website-to-store-in-database/#findComment-1282564 Share on other sites More sharing options...
oha055 Posted October 27, 2011 Author Share Posted October 27, 2011 You can do it however you like. Once you start storing different categories of data, your moving into the land of a CMS application. Thanks for the reply! ok, so any way I like. But do you think maybe this would be a bit overkill for a personal website? Also, do you know of any good books on CMS? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/249881-which-part-of-website-to-store-in-database/#findComment-1282565 Share on other sites More sharing options...
oha055 Posted October 27, 2011 Author Share Posted October 27, 2011 Before you start storing to much data in the database, you might want to learn about database normalization. you will be glad you did, because it will save a ton of work later. Thanks! I'll check it out! Quote Link to comment https://forums.phpfreaks.com/topic/249881-which-part-of-website-to-store-in-database/#findComment-1282566 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.