Log in

View Full Version : Weird Question...


error_22
01-09-2006, 05:25 PM
Ok, so im going to try to make a site with 5 different pages, and i want the content of these pages to be editable from a control panel.

My question is: How should I save the page content in the DB? Create one table and then one column for each page? Im clueless :o

Thanks in advance
Niklas

Andrew
01-09-2006, 07:27 PM
You could also have one table called page with three columns (ID, Name, Content.) If you coded your site this way you would be able to easily add and remove pages without having to modify your DB structure.

error_22
01-09-2006, 08:21 PM
yeah i was thinking about that, but right now i just want to do as i described above. How would I do that? Im so lost. Im trying to learn but it takes time. :/

anyone?