
2007-03-28, 06:30 PM
|
 |
進階會員
|
|
註冊日期: 2002-10-01
文章: 2,763
|
|
引用:
Discuz! info: MySQL Query Error
User: MyIDNs
Time: 2007-3-28 11:13am
Script: /talk/post.php
SQL: INSERT INTO cdb_posts (fid, tid, first, author, authorid, subject, dateline, message, useip, invisible, anonymous, usesig, htmlon, bbcodeoff, smileyoff, parseurloff, attachment)
VALUES ('2', '4222', '0', 'MyIDNs', '214', '', '1175051600', '闂瑙e喅浜嗗氨OK浜嗭紝
鍔犳补銆?, 'XX.XX.XX.XX', '0', '0', '', '0', '-1', '-1', '', '0')
Error: Duplicate entry '16006' for key 1
Errno.: 1062
Similar error report has beed dispatched to administrator before.
|
單從錯誤訊息判斷。
先檢查/talk/post.php 這支程式看看,'message'這標籤值後方是不是少了一個「'」單引號?
VALUES('$fid', '$tid', '$first', '$author', '$authorid', '$subject', '$dateline', '$message', '$useip', .....................)
是不是要增加什麼功能,動到程式了
此篇文章於 2007-03-28 06:35 PM 被 cool 編輯。
|