Re: mysqli_fetch() return values

From: Date: Wed, 18 Feb 2004 08:29:32 +0000
Subject: Re: mysqli_fetch() return values
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-7948@lists.php.net to get a copy of this message
On Feb 18, 2004, at 2:51 AM, Georg Richter wrote:
I would like to propose a change in how mysqli_fetch() signifies "no more data." It should return NULL instead of MYSQLI_NO_DATA (a positive value) because it leads to cleaner PHP code and is more consistent with other MySQL fetch functions.
Thanks for pointing it out. The reason was, that we weren't sure if we need other return values (array fetch, etc) for MySQL 5.0/5.1 - but we will add a separate function for. I will change it and update documentation later today.
Great. Thanks. -adam -- adam trachtenberg adam@trachtenberg.com

« previous php.internals (#7948) next »