php mysql text mark question

Solutions on MaxInterview for php mysql text mark question by the best coders in the world

showing results for - "php mysql text mark question"
Denzel
22 Apr 2017
1$dbh = new PDO('mysql:host=localhost;dbname=' . $DB_NAME, $DB_USER,
2$DB_PASS, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'"));
3$dbh->exec("SET CHARACTER SET UTF8");
4
Vicente
21 Jul 2018
1$MySQL_Handle = mysqli_connect(HOSTNAME,DATABASE_USERNAME,DATABASE_PASSWORD,DATABASE_NAME) 
2or die ( mysqli_error($MySQL_Handle) ); 
3
4$sSQL= 'SET CHARACTER SET utf8'; 
5
6mysqli_query($MySQL_Handle,$sSQL) 
7or die ('Can\'t charset in DataBase'); 
8
similar questions
queries leading to this page
php mysql text mark question