Re: Performing Multiple Prepared Queries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Carlton Whitehead wrote:
> Hi Nathaniel,
> 
> When your query starts its second loop, the resultset from the first
> one is still defined as the resultset in your prepared statement
> object.  Before you can get another resultset, you need to clear the
> first one using the mysqli_stmt_free_result function.  It would
> probably be best to place the free_result call after each call to
> fetch.  Check
> http://www.php.net/manual/en/function.mysqli-free-result.php for more
> details about it.
> 

I thought I had tried that, but apparently not.  It works now.  Thanks
for the help.

-- 
Nathaniel Hall, GSEC GCFW GCIA GCIH GCFA
Spider Security

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux