PHP help? Creating a simple paging system?

Discussion in 'Odds & Ends' started by tennisguyak, Jan 13, 2011.

  1. tennisguyak

    tennisguyak Semi-Pro

    Aug 6, 2008
    Hi all,

    I have a website on which I currently have a wordpress blog set up - Honestly though, I don't make much use of the wordpress blog, just as a way of organizing my blog posts. The rest of the site besides the blog is all made in Dreamweaver.

    As I said I don't make much use of the actual wordpress system - I'm very comfortable designing my website and I don't know enough about wordpress to make a site comparable to one that I could design myself.

    I'm looking for a simple code that will allow me to take blog posts from a MYSQL database and automatically create a page for each blog post, like wordpress does. So for example, if the blog's ID number would be 15, the URL would be www . alexklibisz . com / blog / page.php? number=15.

    Ideally I would make a database with an ID number for each blog post, a timestamp, content, and an excerpt - then each blog post would automatically generate it's own page using the page ID.

    How would I go about doing this? Does anyone know of any simple scripts or good tutorials that would let me do this? I'm very comfortable working with MYSQL databases, tables, etc as well as Dreamweaver and incorporating the data from the database and forms to insert data, just not so good with hard-coding the actual PHP.

    I appreciate any help!
  2. jivesamba

    jivesamba New User

    Feb 27, 2005
  3. Eph

    Eph Professional

    Oct 7, 2007
    Cambridge, MA
    hi tennisguyak -

    No offense, but you don't know what you're doing.

    If you actually know databases, there's no reason why 1) you wouldn't know php (or a similiar language) and 2) you wouldn't use Dreamweaver.

    Learn PHP, Python, Perl, Ruby, whatever and script a backend if you don't want to use the myriad available, including Wordpress, Drupal, pylons, django, etc etc etc.

    What you're asking is incredibly simple. You should read this, start from the beginning:
  4. albino smurf

    albino smurf Professional

    Mar 7, 2008
    In a cloud of yellow fuzz
    I'm with Eph. No need to reinvent the wheel. If you wanted to reinvent the wheel though one solution is to send your variables in your request so you are saying get story with id= XX. Look at the url for this page...

    so this is thread 36352 loaded into the basic template that they use.

    That said, you'd be better off learning one of the established CMS available and working with that, so that your next need doesn't lead to another reinvention, but rather you can turn on your plug ins and work with those.

Share This Page