Re: Hi I am new to PHP

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

 



andy_amol_2003@xxxxxxxxx (Andy Amol) wrote in
news:20040415193159.57941.qmail@xxxxxxxxxxxxxxxxxxxxxxx: 

> 
> I have posted my problem at No: 33892 of this mailing list. I have
> received 1 reply. No: 33897 
> 
> My exact problem with second file is as follows:
> 
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL
> result resource on line 15 
> 
> 
> Can you help me to solve problem, any help would be appreciated.
> 
> Thanks.

Your sql syntax is probably wrong. Somewhere before line 15 you are 
presumably using mysql_query to submit your query. Try adding to that line

or exit( 'Error: ' .mysql_error() );

which will halt your script and return a useful error string from mysql if 
there is an error.

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux