Re: PHP MySQL news display probs

From: Date: Tue, 15 Jul 2003 14:55:12 +0000
Subject: Re: PHP MySQL news display probs
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-29269@lists.php.net to get a copy of this message
> 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...

« previous php.db (#29269) next »