Jump to content

Setup like php.net/this?


FuzzyLogik

Recommended Posts

  • 2 weeks later...
First off, boo_lolly, please don't post posts like that. It is considered spam.  Secondly, you will need a mysql database.

First, you store the page in a database.  I would have a database layout like so:

Table: pages
id
page_title
page_content
created_by
date_created
date_modified

Then you have code that inserts the pages into the database, and a place to edit each page.  I won't go into that, because it is PHP and not mod_rewrite.

Then index.php should do something like, index.php?id=$pageid  where $pageid is the id of the page in the table you just created.  Then index.php will run the query to extract all the information, and display it.  Again, PHP, so I won't go into it here.

Now for the mod_rewrite. 

http://www.sitepoint.com/article/guide-url-rewriting  That will teach you a whole lot on mod_rewrite.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.