Unlock results PHP 7 PDO

0

someone who knows what function is used in PHP 7 to release results after a query. Because I know of mysqli_free_result (), but I think this should no longer be used in PHP 7.

    
asked by Alejo Mendoza 03.03.2018 в 23:29
source

1 answer

1

If you are using the mysqli driver, it is as follows:

mysqli_free_result($sql);

If you use PDO, it would be:

$sentencia->closeCursor(); 
    
answered by 03.03.2018 / 23:36
source