View Full Version : PHP help? Creating a simple paging system?

01-13-2011, 12:15 PM
Hi all,

I have a website on which I currently have a wordpress blog set up - http://www.alexklibisz.com. 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!

01-18-2011, 02:06 PM

01-22-2011, 10:54 PM
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: http://dev.mysql.com/doc/refman/5.5/en/index.html

albino smurf
01-23-2011, 05:57 AM
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... http://tt.tennis-warehouse.com/showthread.php?t=363652

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.