Step by Step, Building a Simple Content Management System Using Php and MySql

The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

That is exactly what I have done for my content management system, but I thought to myself that it is very confusing to someone that doesn't know how to use my CMS.

I was thinking to myself a while back, that I'll make my CMS compatible with most systems and then sell it or give it away for free. Why? Because, you wouldn't believe the amount of people that actually pm me asking for my script. Some people in email want me to make them one based on mine, and actually one person already does use it: http://www.visupoint.com and including me (http://www.codingclick.com) that is 2. There was going to be another, but pulled out...

pete, that is one of the projects i am working on now. I hope to have it finished in about two weeks or so. It should be flexible enough to handle just about anything with any fields you want, template driven blah de blah.

I also use the pagebreak|title|text format. I think it's better to do it this way than to have a column in the database for each page.

The only problem I have with my cms, is that sometimes the "<" character is processed as html and I have to put in the html code (lt) for it, other times it's fine and I don't have to change it. If anyone else experiences this, and knows a solution I'd be interested.

I recommend that everyone that hasn't, try to setup php on their home computer, because it's much easier testing code offline than the hassle involved in uploading, testing then uploading again when the code doesn't work. I tried several times and was sucessful when php4.04pl1 came out for windows.

i see you do two explodes. I was sort of hoping it would be possible to do it in one but see why you can't now. I think something a bit different to a | might be needed as you might need that in an article? either way, thank you.

THen you won't have to worry about the |, but in articles when I need a | i use '|' , I then use a:

$text = str_replace("'|'", "|", $text);

And it all works out perfectly. It isn't very efficient, but until i work out how to do the [### [Title] ###] it'll have to stay like that. Plus, a problem is that, for that method, how would I make sure that there is not page break on the first page causing a compelte error.

i do like the idea of [### [TITLE] ###] but as you say the first page might be a problem, an extra field for the first page title in the article column possibility but that probably makes more work than how it currently is.