RE: Help with code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
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@xxxxxxxxxxx
http://theufl.com/
 

-----Original Message-----
From: John Holmes [mailto:holmes072000@xxxxxxxxxxx] 
Sent: Sunday, December 26, 2004 1:09 AM
To: karl james
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux