The PHP documentation on closeCursor() says that it
frees up the connection to the server so that other SQL statements may be issued, but leaves the s
This depends on the driver used. I think for mysql this will do nothing else than clear the result of the statement. After calling closeCursor() you cannot call fetch() anymore. However executing the statement again should not be a problem. Try to look at mysql_free_result(), it does a similar thing.