We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 002518d commit a568be8Copy full SHA for a568be8
config/db.php
@@ -13,9 +13,13 @@ public function getConnection()
13
$this->conn = null;
14
try {
15
$this->conn = new mysqli($this->host, $this->username, $this->password, $this->db_name);
16
+
17
+ // Establecer el conjunto de caracteres.
18
+ $this->conn->set_charset("utf8mb4");
19
20
} catch (Exception $exception) {
- echo "Connection error: " . $exception->getMessage();
21
+ echo "Error de conexión: " . $exception->getMessage();
22
}
23
return $this->conn;
24
-}
25
+}
0 commit comments