<?php function logDevice(& $device, $key, $value) { $db = new mysqli($mysqlServer, $username, $passwd, $database); if ($conn->connect_error) { logger(ERROR, _("Mysql connection failed: ") . $db->connect_error, __FILE__ . ":" . __LINE__); } } ?>