Re: Hi I am new to PHP

From: Date: Fri, 16 Apr 2004 02:13:51 +0000
Subject: Re: Hi I am new to PHP
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-33921@lists.php.net to get a copy of this message
andy_amol_2003@yahoo.com (Andy Amol) wrote in news:20040415193159.57941.qmail@web10006.mail.yahoo.com: > > 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.

« previous php.db (#33921) next »