sorunu hallettim arkadaşlar hemen paylaşayım
config.php
database bağlatısından sonra ekleyin,
Kod: Tümünü seç
$mysql_charset = 'latin5';
$collation_connection = 'latin5_turkish_ci';
includes\db.php
bu satırı bulun;
Kod: Tümünü seç
if(!$db->db_connect_id)
{
message_die(CRITICAL_ERROR, "Could not connect to the database");
}
sonuna bu kodları ekleyin;
Kod: Tümünü seç
// Set connection charset & collation for MySQL (based on phpMyAdmin)
if( preg_match("/^mysql/i", SQL_LAYER) )
{
$sql = 'SELECT VERSION() AS mysql_version';
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$match = explode('.', $row['mysql_version']);
if (!isset($row))
{
define('MYSQL_INT_VERSION', 32332);
define('MYSQL_STR_VERSION', '3.23.32');
}
else
{
define('MYSQL_INT_VERSION', (int)sprintf('%d%02d%02d', $match[0], $match[1], intval($match[2])));
define('MYSQL_STR_VERSION', $row['mysql_version']);
}
unset($result, $row, $match);
if ( MYSQL_INT_VERSION >= 40100 && isset($mysql_charset) )
{
if (empty($collation_connection) || ( strpos($collation_connection, '_') ? substr($collation_connection, 0, strpos($collation_connection, '_')) : $collation_connection) == $mysql_charset )
{
$sql = "SET NAMES $mysql_charset";
if ( !($db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Could not set MySQL charset', '', __LINE__, __FILE__, $sql);
}
}
else
{
$sql = "SET CHARACTER SET $mysql_charset";
if ( !($db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Could not set MySQL charset', '', __LINE__, __FILE__, $sql);
}
}
if ( !empty($collation_connection) )
{
$sql = "SET collation_connection = '$collation_connection'";
if ( !($db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Could not set MySQL collation connection', '', __LINE__, __FILE__, $sql);
}
}
}
}
bu kadar
Saygılar.