TypeError thrown

mysqli_set_charset(): Argument #1 ($mysql) must be of type mysqli, string given