I'm trying to create an article system without any Wordpress or that kind of stuff but I really just don't know where to begin. I'm thinking like, in the document the user sees there's this code:
I know, except that I really want to try this by my own. I actually think it's quite easy the way I'm thinking of it, just that I don't really know HOW to write it in PHP.
It sounds easy but it doesn't seem to be. How are you going to get different articles with the same "$aC" variable? The way I see it you would have to create a different one for each article.
In your database create a "content" table (call it what you like) with columns for id (name/number reference) and then each bit of data -- title, subtitle, content, etc. User input (GET request?) should be sanity checked and then used to retrieve the relevant items as variables.
You can then develop a separate interface for adding articles.
For a more comprehensive look at a PHP design that does what you are describing, look at the source code for Kroc Camen's site, camendesign.com.
Well, I'm thinking like that every article has it's own page 'article-title.php' and on the front page there's just a couple iframes? Simple as that, that database suggestion is good.
Get it? :/ No WP!
But the thing is, how do I make these articles and actually send them into this template which then creates a file with the specific data?
Please help..
In your database create a "content" table (call it what you like) with columns for id (name/number reference) and then each bit of data -- title, subtitle, content, etc. User input (GET request?) should be sanity checked and then used to retrieve the relevant items as variables.
You can then develop a separate interface for adding articles.
For a more comprehensive look at a PHP design that does what you are describing, look at the source code for Kroc Camen's site, camendesign.com.
http://camendesign.com/.system/