Content management with PHP mysql

I’m going to attempt to make my own content management system with PHP/MYSQL which will be a huge undertaking considering i’m mostly a flash guy.

I’ve been writing small php pages that drive flash applications for a while now, but am looking to build my own cms that will adapt to the way i work.

Basically i want my cms to allow users to add html pages and html content, but also be able to incorporate tables specifically for driving the flash bells and whistles.

My real question is what is the best way to store a dynamic website page in the database in a way so that it can be quickly (and lightweight) accessed/built via php on the front end/client side?

I guess i was envisioning that the content section of the page (exluding, header, footer, nav, etc.) would be a big ole chunk of html which would get stored in pieces as a row in a database table.

I read somewhere that it’s a bad idea to store html in the database (?) if that is the case, how do you give users the ability to create anything more than a chunk of text?

I know there’s a way to do it… just need to learn it… any help is great! (total backend noob here)