hi friends
how to do please
mysql doesn't accept accent ex:éàè....
this my script to connect in database
$connection = mysqli_connect('localhost', 'root', '');
mysqli_set_charset('utf-8',$connection);
if (!$connection){
die("Database Connection Failed" . mysqli_error($connection));
}
$select_db = mysqli_select_db($connection, 'devhelp_db');
if (!$select_db){
die("Database Selection Failed" . mysqli_error($connection));
}
?>
it show me this errorWarning: mysqli_set_charset() expects parameter 1 to be mysqli, string given in C:\xampp\htdocs\devhelp\connectdb.php on line 4
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ravi SangtaniPosted Aug 24, 2017, 9:21 AM