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
https://forums.phpfreaks.com/topic/30317-setup-like-phpnetthis/#findComment-147361
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.