Answer the question
In order to leave comments, you need to log in
How to set utf-8 for "mysqli_connect_error"?
Good day!
There is an error message about connecting to MySQL:
// Error message
if (mysqli_connect_errno()) {
echo "<div id=\"mysqli-error\">Подключение к серверу MySQL невозможно. Проверьте конфигурацию подключения.<br /><font>Причина ошибки: ", mysqli_connect_error()."</font></div>";
}
Answer the question
In order to leave comments, you need to log in
I don’t know why you need windows 1251 on sites and Microsoft uses utf 8, basically, well, if you need it.
Tembolee 1251!
51 encoding was removed in Windows 7 :)
This encoding was supported by xp, vista, replaced by 1252.
You can set the encoding you need by default in .htass (I don’t remember how), or set the database settings in phpmyadmin and select the desired encoding.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question