Rihards Rihards - 11 months ago 31
MySQL Question

Do I've to free mysql result after storing it?

I was wondering whether or not I've to call the

for after I've stored it's result with
? Could I rather just call
on the end?

The reason why I'm asking it is because when I call the
I've to call the
as said here: http://www.php.net/manual/en/mysqli-stmt.num-rows.php, but they don't call the
in their example. However, on the
they do: http://www.php.net/manual/en/mysqli-stmt.store-result.php.

Answer Source

You do not have to expressly free the result, but you can if you'd wish. If you don't, the result will be freed when the statement handle goes out of scope.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download