Hello can you help me add utf-8 coding to this query
$settings = dbarray(dbquery ("SELECT * FROM ".DB_SETTINGS ));
it displayes whole mysql data
echo $settings;
echo $settings;
echo $settings;
etc
Hello can you help me add utf-8 coding to this query
$settings = dbarray(dbquery ("SELECT * FROM ".DB_SETTINGS ));
it displayes whole mysql data
echo $settings;
echo $settings;
echo $settings;
etc
Not sure what it is what you want. If you have your tables all utf-8 encoded and want your php script and queries to do the same all you need is
<?php
header('Content-type: text/html; charset=UTF-8');
to get php to work in utf-8 and
if (!$db->set_charset("utf8")) {
echo "<p>Error: ".$db->error."</p>";
echo "<p>Please contact your database administrator.</p>";
exit();
}
($db = new mysql.... ) so all data in your queries go in utf-8 as well.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.