SMF Thailand.

SMF Development => Portals, Bridges, and Integrations => ข้อความที่เริ่มโดย: T_BON ที่ 27/12/07, 00:03:27

หัวข้อ: ปัญหาภาษาไทย sbox_v1.16b กับ SMF 1.1.4 ช่วยดูให้หน่อยครับ
เริ่มหัวข้อโดย: T_BON ที่ 27/12/07, 00:03:27
พิมพ์ไทยแล้ว Error แบบนี้ครับ
ฐานข้อมูลผิดพลาด
Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
ไฟล์: /home/vol4/thport.com/thpor_xxxxx/ed25board.thport.com/htdocs/Sources/sboxDB.php
บรรทัด: 188

บรรทัดที่ 188 มีดังนี้ครับ
      $result = db_query("SELECT id FROM " . $db_prefix . "sbox_content WHERE ID_MEMBER='" . $context['user']['id'] . "' AND content='" . $content . "' AND time='$date'", __FILE__, __LINE__);
      $rows = mysql_fetch_assoc($result);
      $sql = 'DELETE FROM ' . $db_prefix . "sbox_content WHERE id < '" . ($rows["id"]-$modSettings['sbox_MaxLines']) . "'";
      db_query($sql, __FILE__, __LINE__);
หัวข้อ: Re: ปัญหาภาษาไทย sbox_v1.16b กับ SMF 1.1.4 ช่วยดูให้หน่อยครับ
เริ่มหัวข้อโดย: T_BON ที่ 8/01/08, 17:35:16
ตอบเองเลยครับ

ใช้ phpadmin เข้าไปแก้ฐานข้อมูล
ตารางที่มาใหม่ ของ sbox
ให้ทั้งตัวตารางและโครงสร้างทั้งหมดเป็น utf8_general_ci

ขอบคุณ    คุณblueranchu 
จากเว็บhttp://www.justusers.net