|
Тема |
Re: проблем с търсенето на кирилица в DB [re: The Fallen Angel] |
|
Автор |
The Fallen Angel (олигозахарид) |
|
Публикувано | 25.03.09 17:58 |
|
|
Ok де, аз все пак ще споделя евентуалното решение, което ще пробвам сега:
<?php
$strCharSet="cp1251";
$CMysqli = new mysqli($strServer, $strUser, $strUserPassword);
/* check connection */
if (mysqli_connect_errno())
{
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
if (!$CMysqli->set_charset($strCharSet))
printf("Error loading character set %s: %s\n", $strCharSet, $CMysqli->error);
$CMysqli->select_db($WorkDatabase);
?>
See, to live is to suffer but to survive. Well that's to find meaning in the suffering.
|
| |
|
|
|