Re: MySQL_Num_Rows functionality

From: Date: Sun, 30 Sep 2001 04:43:10 +0000
Subject: Re: MySQL_Num_Rows functionality
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-66845@lists.php.net to get a copy of this message
Ignore. This only happened for a few minutes and without changing anything started working. I don't know why. -- Mike ----- Original Message ----- From: "Mike Rogers" <temp6453@hotmail.com> To: <php-dev@lists.php.net> Sent: Sunday, September 30, 2001 12:48 AM Subject: [PHP-DEV] MySQL_Num_Rows functionality > > mysql_num_rows() to a result that returned zero rows returns 'Supplied > argument is not a valid MySQL result resource'. If it is an invalid > resource (such as SELECT * from table to an empty table), shouldn't it > return ZERO (0). > > That seems to make the most sense, as opposed to throwing an error. if > (mysql_num_rows($result) != 0) seems to be useful, but it doesn't work > because of this. > > I realize I can put an "@' symbol, but i just think it should return zero. > -- > Mike > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.dev (#66845) next »