> 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 there is nothing in the database
> and prints out the arm of the else statement, no records.

So what's the value of $id on the story.php page? What's the value of
$_GET['id']? Print out your query before you execute it to make sure it
looks right. Do some debugging and read about register globals (if my
assumption is correct).

---John Holmes...



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to