This commit is contained in:
Admin
2026-10-20 17:10:57 +02:00
parent eee55d607b
commit be9c0609ae
+6
View File
@@ -22,6 +22,12 @@ class SQL {
if ($this->h->connect_errno) {
return false;
}
// Keep prepared statement parameters and text columns on the same UTF-8
// encoding. Without this, valid UTF-8 input can be rejected by utf8mb4
// columns depending on the server's connection default.
if (! $this->h->set_charset ( 'utf8mb4' )) {
return false;
}
return true;
}
public function get(string $que, string $t = '', mixed $p = array ()): array|false {