Just started using mysqli. If I\'m working with small data sets on small websites (traffic-wise), do I really need to use these all the time?
$result->clo
I felt an update to this thread was needed...
According to current documentation, you should always use $mysql->kill() in addition to $mysql->close().
$thread = $mysqli->thread_id;
$mysqli->kill($thread);
$mysqli->close();
(As a side note, I asked Oracle developers about using PDO with MySQL and they discouraged it. They use MySQLi exclusively. PDO hasn't been maintained and it doesn't support many of MySQL's current features.) Edit: obsolete comment.
Edit: switched the statement order, as suggested.