Re: Help with code
| From: | John Holmes | Date: | Sun, 26 Dec 2004 05:08:41 +0000 |
| Subject: | Re: Help with code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205175@lists.php.net to get a copy of this message | ||
karl james wrote:
Can you tell me why this code is not working? I get a query is empty at the moment. http://www.theufl.com/php/wrox_php/movie_details.phpsDidn't we already see this once? From File:
$movie_query in mysql_query();What kind of PHP code is that? You could really help yourself by telling us what query failed... what line it's on and only that line and a couple around it. Do you think a lot of other people are boring like me and going to read your code on Christmas? If you don't know what query is failing, then use more than mysql_error() in your die statements... $review_result = mysql_query($review_query) or die('Query to pull reviews has failed. Reason: ' . mysql_error()); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com