Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

Re: [PHP3] Need a little clarification on mysql_query From: Cary Collett (caryc <email protected>)
Date: 07/31/98

Stefan Powell (spowell <email protected>) said:

> My script is performing many select queries and after I'm done with each
> result set I'm doing a free_result. I have noticed that the value of
> the result indentifier is increasing on each query request in the
> script. To me that seems odd. Shouldn't it stay the same if the
> free_result is being done after each query/fetch?

Regardless of whether you free prior results, subsequent queries
still give a new result id. I suppose it would be possible to check
to see if the last result was free'd and then use that result_id, but
that seems pretty cumbersome when you can just increment the counter
for each query regardless.

>
> Secondly, I just want to confirm that the mysql_query returns TRUE/FALSE
> on update, insert, and delete requests and not a results identifier.
> True or not true?

True, at least this seems to work for me. ;-)

>
> --Stef
>

Cary

-- 
Cary Collett                                           cary <email protected>

To me, boxing is like ballet, except there's no dancing, no choreography and the dancers hit eachother.

-- 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