SMF Support > General Thai Support
พบปัญหา ฐานข้อมูลผิดพลาด
(1/1)
kanchit:
ฐานข้อมูลผิดพลาด: Duplicate entry '0' for key 1
ไฟล์: D:\Webspace\yaristhailandclub.com\httpdocs\smf\Sources\Subs-Post.php
บรรทัด: 1505
เข้าไปดูใน file ดังกล่าว
SUBSTRING('$posterOptions[ip]', 1, 255), " . ($msgOptions 'smileys_enabled'] ? '1' : '0') . ", '', SUBSTRING('$msgOptions[icon]', 1, 16))", __FILE__, __LINE__);
บรรทัดดังกล่าวเป็นแบบนี้ .. table เป็น smf_messages
และไปดู table ที่เกี่ยวข้อง จะเจอ warning
PRIMARY and INDEX keys should not both be set for column `ID_MSG`
guanteen:
ข้อมูลที่ลงมันซ้ำกันครับต้องลองเอา Primary key ของ ID_MSG ออกลองดูครับ
นำร่อง
[0] ดัชนีข้อความ
ไปที่เวอร์ชันเต็ม