Re: [PHP-DB] Generating pages with full stories

2006-11-13 Thread J R
Here's how you should do this (IMHO): On you front page make a sql query say you want to display the latest 3 events. Your query probably will look like this: select event_table_id, title from event_table order by date_created desc limit 3; then from the result make a while or for loop (for exa

Re: [PHP-DB] Generating pages with full stories

2006-11-13 Thread dancemaniac
I'd answer question number 3. Well, it is just about an update section that the administrators will input on the database for updates and event for a company, saying the website has an updated page or simply putting an "event" for the public to know. Right now, I want to know how get a URL like t

Re: [PHP-DB] Generating pages with full stories

2006-11-13 Thread Jeffrey
Yes... But, the experts on this list need more info in order to help you out. 1. Where are the stories going to come from? If you plant to take news stories from other sites and use them on your own site, there are serious legal issues involved. 2. If you want to write the stories yourself,

[PHP-DB] Generating pages with full stories

2006-11-13 Thread dancemaniac
I've got a website using PHP and MySQL. I would like to make a "news preview" on the webpage's frontpage with a link to the full story. Is it possible to use one (1) .PHP file to generate full stories, with MySQL involved? I'm just a newcomer in the world of PHP but I am doing my best in reading