Re: function not returning TRUE
| From: | Erik Price | Date: | Tue, 12 Feb 2002 17:20:11 +0000 |
| Subject: | Re: function not returning TRUE | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84403@lists.php.net to get a copy of this message | ||
On Tuesday, February 12, 2002, at 11:24 AM, Nick Wilson wrote:
Hi all Can anyone see any reason why this function does not appear to be returning true? It appears to be returning 1 though? [snip snip]<snipped/> Hm. I can't answer your question, but I'd like to ask you one. I've been using 'return 1' or 'return 0' in my function calls -- is there an advantage to using 'TRUE' or 'FALSE' rather than numbers? In other words, why did you choose to do it the way you did? Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.comif(!$this->_db_connect()) { return FALSE; }if(!($result=mysql_query($qry))) { return FALSE; } else {