Answer the question
In order to leave comments, you need to log in
Is it necessary to close a connection re-created through another variable?
With such a recording, should I do more at the end $sql->close()
?
$mysqli = new mysqli($host,$user,$pass,$con);
$mysqli->set_charset("utf8");
if($sql = $mysqli->prepare($query)) {
$sql->bind_param("s", $value);
$sql->execute();
$mysqli->close();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question