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]
>
> if(!$this->_db_connect()) {
> return FALSE;
> }
>
> if(!($result=mysql_query($qry))) {
> return FALSE;
> } else {
<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
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php