< ?php echo $aC ?>
PHP Article Template
# September 3, 2012 at 9:49 am
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:
< !doctype html>
iP5T - < ?php echo $aH ?>
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..# September 4, 2012 at 5:52 pm
This reply has been reported for inappropriate content.
If there isn’t too much content:
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.
You must be logged in to reply to this topic.