Merge branch 'fronkdev' into 'master'

upgraded mysql connection charset to utf8mb4

See merge request fronk/thetool!208
This commit is contained in:
Frank Schubert
2024-01-31 13:47:43 +00:00

View File

@@ -45,9 +45,9 @@ class FronkDB {
}
mysqli_select_db($this->link,$this->db) or die("Error connecting to database...".mysqli_error($this->link));
if(function_exists("mysqli_set_charset")) {
mysqli_set_charset($this->link,'utf8');
mysqli_set_charset($this->link,'utf8mb4');
} else {
$this->query("SET NAMES utf8");
$this->query("SET NAMES utf8mb4");
}
}