RE: [PHP] Help with code

From: Date: Sun, 26 Dec 2004 04:13:14 +0000
Subject: RE: [PHP] Help with code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-205176@lists.php.net to get a copy of this message
I have since updated it. And I am having issues with a function I suppose. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site38/fst/var/www/html/php/wrox_php/movie_details.php on line 119 http://www.theufl.com/php/wrox_php/movie_details.php Karl James (TheSaint) karl.james@verizon.net http://theufl.com/ -----Original Message----- From: John Holmes [mailto:holmes072000@charter.net] Sent: Sunday, December 26, 2004 1:09 AM To: karl james Cc: php-general@lists.php.net Subject: Re: [PHP] Help with code 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.phps Didn'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

« previous php.general (#205176) next »