How to close prepare statement connections? this is correct? - PDO

NeoPhyteX

New Member
i use this code, for example:\[code\]$result = $link->prepare("SELECT * FROM animals WHERE id = '$id'");$result->execute();$row = $result->fetch(PDO::FETCH_ASSOC);$result = null;$link = null;\[/code\]It's ok use "$result = null;" to close this connection?
 
Back
Top