Date: 09/29/01
- Next message: °Ù´óÍøÍø¹: "[PHP-DEV] Öйú²ÅÍøÍ¨Öª"
- Previous message: Sander Steffann: "Re: [PHP-DEV] Re: exit() / die()"
- Next in thread: Mike Rogers: "Re: [PHP-DEV] MySQL_Num_Rows functionality"
- Reply: Mike Rogers: "Re: [PHP-DEV] MySQL_Num_Rows functionality"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: °Ù´óÍøÍø¹: "[PHP-DEV] Öйú²ÅÍøÍ¨Öª"
- Previous message: Sander Steffann: "Re: [PHP-DEV] Re: exit() / die()"
- Next in thread: Mike Rogers: "Re: [PHP-DEV] MySQL_Num_Rows functionality"
- Reply: Mike Rogers: "Re: [PHP-DEV] MySQL_Num_Rows functionality"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

