Answer the question
In order to leave comments, you need to log in
When receiving an array in PHP from MySql, Russian characters are replaced by ?????
When writing $mysqli->query ("SET NAMES 'utf8'"); gives an error:
Fatal error: Call to a member function query() on a non-object in Z:\home\werington\www\index.php on line 7
Database encoding utf8_general_ci.
Answer the question
In order to leave comments, you need to log in
1) Do you create the object itself successfully?
$mysqli = new mysqli("localhost", "user", "pass", "bd");
2) Is the file with the code in UTF-8 encoding?
The picture is small, you can't see anything)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question