Авторизация
 Регистрация   Войти   Забыли пароль? 

В БД или на сайте PHP-Fusion вопросительные знаки вместо русских букв

Обновлённый PHP-Fusion Bogatyr / Free CMS PHP-Fusion 7 Bogatyr / PHP-Fusion Core code / В БД или на сайте PHP-Fusion вопросительные знаки вместо русских букв


 Russian

При создании БД в окно SQL в пхпмайадмин вставить:

ALTER DATABASE `имя_Вашей_базы` CHARACTER SET cp1251 COLLATE cp1251_general_ci;

И нажать "Пошел"

In a database or on a site PHP-Fusion interrogative signs instead of Russian letters

Обновлённый PHP-Fusion Bogatyr / Free CMS PHP-Fusion 7 Bogatyr / PHP-Fusion Core code / In a database or on a site PHP-Fusion interrogative signs instead of Russian letters


 English

When creating a database in the SQL window, insert:

ALTER DATABASE `the_name_of_your_database`  CHARACTER SET cp1251 COLLATE cp1251_general_ci;

And click "Go"

PHP

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
RU: оригинал:
EN: original:
PHP
  1. <?php
  2. function dbconnect($db_host, $db_user, $db_pass, $db_name) {
  3. $db_connect = @mysql_connect($db_host, $db_user, $db_pass);
  4. $db_select = @mysql_select_db($db_name);
  5. if (!$db_connect) {
  6. die("<div style='font-family:Verdana;font-size:11px;text-align:center;'><b>Unable to establish connection to MySQL</b><br>".mysql_errno()." : ".mysql_error()."</div>");
  7. } elseif (!$db_select) {
  8. die("<div style='font-family:Verdana;font-size:11px;text-align:center;'><b>Unable to select MySQL database</b><br>".mysql_errno()." : ".mysql_error()."</div>");
  9. }
  10. }
  11. ?>


RU: Заменить На:
EN: Replaced by:
PHP
  1. <?php
  2. function dbconnect($db_host, $db_user, $db_pass, $db_name) {
  3. $db_connect = @mysql_connect($db_host, $db_user, $db_pass);
  4. $db_select = @mysql_select_db($db_name);
  5. mysql_query ('SET NAMES cp1251');
  6. mysql_query ('SET CHARACTER SET cp1251');
  7. if (!$db_connect) {
  8. die("<div style='font-family:Verdana;font-size:11px;text-align:center;'><b>Unable to establish connection to MySQL</b><br>".mysql_errno()." : ".mysql_error()."</div>");
  9. } elseif (!$db_select) {
  10. die("<div style='font-family:Verdana;font-size:11px;text-align:center;'><b>Unable to select MySQL database</b><br>".mysql_errno()." : ".mysql_error()."</div>");
  11. }
  12. }
  13. ?>
Добавить комментарий

Добавить комментарий
Пожалуйста, залогиньтесь для добавления комментария.
Рейтинги
HTML-code and BB-code for blogs and forums

<a href="https://php-fusion.vveb.ws/php-fusion.php?id=61">В БД или на сайте PHP-Fusion вопросительные знаки вместо русских букв</a>


[url=https://php-fusion.vveb.ws/php-fusion.php?id=61]В БД или на сайте PHP-Fusion вопросительные знаки вместо русских букв[/url]

Language: Default
 
Код для PHP-Fusion