As far as I can see, you never actually create your $mysqli
object (unless it’s loaded in another file, which includes this one). You need to create it:
$mysqli = new MySQLi('localhost', 'username', 'password', 'dbname');
// then
if($stmt = $mysqli->prepare('UPDATE `brugere` SET `rank`=2, `katogori`=?, `djnavn`=?, `profilbillede`=?, `profiltekst`=?, `facebook`=?, `pris`=?, `booking`=?, `mobil`=? WHERE `code`=?'))