Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

Re: [PHP3] Need a little clarification on mysql_query From: Tommy Williams (Tommy.Williams <email protected>)
Date: 07/31/98

On Fri, 31 Jul 1998 11:45 -0400 "Stefan Powell" <spowell <email protected>> wrote:

>> True, at least this seems to work for me. ;-)
>
> Ok. I'll ad that to the doc notes too.

According to the docs, it returns a positive MySQL result identifier on
success, or false on error.

So, I always check: if ( $query_result > 0 ) # it worked

I suppose if ( $query_result ) would be just as effective.

--
Tommy Williams
<mailto:Tommy.Williams <email protected>>
  <URL:http://www.mc.Vanderbilt.Edu/~tommy/>

-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3