Newbie question - how can I do this simple task?
Posted: Mon May 26, 2008 3:34 pm
I'm creating my first website and trying to teach myself how to use PHP and mySQL in order to do it. The design of the site essentially boils down to a journal with many journal entries, similar to a blog. I want the title of each entry to be present in the URL, and I'm thinking it will look something like these:
http://www.mywebsite.com/journal/0001/introduction
http://www.mywebsite.com/journal/0002/the_journey_begins
http://www.mywebsite.com/journal/0003/yeehaw_its_an_adventure
I want to have these URLs while at the same time have them all refer to a single PHP file that will populate itself with the corresponding content from a database. In this way, I can update the layout of every journal page by just modifying a single file. Does that make sense?
In all likelihood, I'm probably going about this all wrong. Any pointers, solutions or suggestions are most welcome. I'm a newb... I know... but I have to start somewhere.
Thanks,
ConQuesimo
http://www.mywebsite.com/journal/0001/introduction
http://www.mywebsite.com/journal/0002/the_journey_begins
http://www.mywebsite.com/journal/0003/yeehaw_its_an_adventure
I want to have these URLs while at the same time have them all refer to a single PHP file that will populate itself with the corresponding content from a database. In this way, I can update the layout of every journal page by just modifying a single file. Does that make sense?
In all likelihood, I'm probably going about this all wrong. Any pointers, solutions or suggestions are most welcome. I'm a newb... I know... but I have to start somewhere.
Thanks,
ConQuesimo