using UTF-8 Encoded Charset for MySQL Database Querys

This commit is contained in:
Alec Höfler 2022-05-18 14:15:51 +02:00
parent ac3fa76635
commit 3e9138a9ec
No known key found for this signature in database
GPG key ID: BE83D6C1099F2835

View file

@ -27,6 +27,7 @@ try {
echo 'Exception abgefangen: ', $ex->getMessage(), "\n<br/>"; echo 'Exception abgefangen: ', $ex->getMessage(), "\n<br/>";
} }
$pdo->exec("SET NAMES utf8");
//Primary SQL Statement //Primary SQL Statement
$statement = $pdo->prepare("SELECT zf_bap_orders.*,zbs.name as zbs_name,zbc.code as zbc_code, zbc.discount_price as zbc_discount $statement = $pdo->prepare("SELECT zf_bap_orders.*,zbs.name as zbs_name,zbc.code as zbc_code, zbc.discount_price as zbc_discount