I'm trying to insert an accented e
into a mysql database following this example. Using this:
mysql_query("SET NAMES 'utf8'");
throws:
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost'
Its not connecting to the database:
DEFINE ('DB_USER', 'user');
DEFINE ('DB_PASSWORD', 'pword');
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_NAME', 'test1');
$dbc = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);