change character to utf8
This commit is contained in:
parent
b8138b4028
commit
d0d3989bb0
@ -13,7 +13,7 @@ class Mysql{
|
|||||||
die('can\'t connect to mysql ' . $ $dbInfo['host'] );
|
die('can\'t connect to mysql ' . $ $dbInfo['host'] );
|
||||||
}else{
|
}else{
|
||||||
// mysqli_query( "set names 'utf8'" , $db );
|
// mysqli_query( "set names 'utf8'" , $db );
|
||||||
mysqli_query( $db , "set names 'utf8mb4'" );
|
mysqli_query( $db , "set names 'utf8'" );
|
||||||
}
|
}
|
||||||
//echo 'connect to: '. $dbInfo['host'].'at db:'.$dbInfo['dbname'].'<br>';
|
//echo 'connect to: '. $dbInfo['host'].'at db:'.$dbInfo['dbname'].'<br>';
|
||||||
mysqli_select_db( $db , $dbInfo['dbname'] );
|
mysqli_select_db( $db , $dbInfo['dbname'] );
|
||||||
|
Loading…
Reference in New Issue
Block a user