mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2025-12-06 07:42:03 +01:00
Update mysql.class.php
Full UTF-8 support. Update MySQL plugin and web UI to allow storage and display of emojis.
This commit is contained in:
parent
219eb34322
commit
7d67bd87ac
|
|
@ -35,6 +35,10 @@ Simple Database Class (C) by Bastian Schroll
|
||||||
$this->error("Datenbank nicht gefunden!", mysqli_error($this->conn));
|
$this->error("Datenbank nicht gefunden!", mysqli_error($this->conn));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Set character set for database connection to utf8mb4 */
|
||||||
|
mysqli_query($this->conn, "SET NAMES 'utf8mb4'");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue