Re: [PHP-DB] PHP MySQL news display probs

2003-07-15 Thread jeffrey_n_Dyke
you'll need to use $_GET['id'] or you'll need to set register_globals = On. I would use the first method, and replace $query = "SELECT slug, content, contact, timestamp FROM news WHERE id = '$id'"; with --> $query = "SELECT slug, content, contact, timestamp FROM news WHERE id = '". $_GET['id']."

Re: [PHP-DB] PHP MySQL news display probs

2003-07-15 Thread CPT John W. Holmes
> I have created a simple news system and am having a > problem in that all the code compiles so I think it is > correct and the news headlines display but when you > point to the link to read the article (for example > http://localhost/news/user/story.php?id=2) nothing > displays, it returns that