I am new to MySQL and PHP and am attempting to make my own CMS to help make managing my websites easier. Can someone explain mysqli\'s close() function?
close()
You need to close the Mysql session when you manual set variables @@session or non-defined (set to @@session). for example
$mysqli->query("SET @uuid=UUID()");
https://dev.mysql.com/doc/refman/5.1/en/set-statement.html