I see the code every where. Why don't we put the close($result) after we use $result? -- I'm puzzled.
$result = db_query($sql);

Comments

zwu_ca’s picture

But in Java, one has to explictly free the resource. So the comparison with Java is not very correct.