Re: mysqli_fetch() return values

From: Date: Wed, 18 Feb 2004 07:51:32 +0000
Subject: Re: mysqli_fetch() return values
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-7947@lists.php.net to get a copy of this message
Hi Adam, > 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. Georg

« previous php.internals (#7947) next »