AL8 Forum
   登錄註冊幫助


標題: 點歌發短訊息發生問題
 mingsong
 0033440
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 113

精華: 0

積分: 1372 點

現金: 5 元

存款: 5269 元

閱讀權限: 20

註冊: 2005-10-24

狀態: 離線
 
發表於 2005-10-31 15:28  資料  個人空間  短消息  加為好友 
點歌發短訊息發生問題

我點歌時如果不發短訊通知是沒問題的,但發短訊就會出現以下訊息…

Discuz! info: MySQL Query Error

User: Ming
Time: 2005-10-31 3:29pm
Script: /addsong.php

SQL: INSERT INTO VALUES('', 'Ming', 'Ming', 'inbox', 1, '系統點歌台', '1130743780', '你的朋友Ming給你送上一首Stephy-好心好報,請注意查收')
Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'VALUES('', 'Ming', 'Ming', 'inbox', 1, '系統點歌台', '113074378
Errno.: 1064

Similar error report has beed dispatched to administrator before.




 AL8 Forum © All rights reserved.
頂部
 mingsong
 0033440
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 113

精華: 0

積分: 1372 點

現金: 5 元

存款: 5269 元

閱讀權限: 20

註冊: 2005-10-24

狀態: 離線
 
發表於 2005-10-31 16:39  資料  個人空間  短消息  加為好友 
有人知道是甚麼原因縻?我搞來搞去都搞不好…




 AL8 Forum © All rights reserved.
頂部
 Poka
 0000379
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9

頭銜: Administrator

帖子: 6214

精華: 6

積分: 38095 點

現金: 4793 元

存款: 1493911 元

閱讀權限: 120

註冊: 2003-11-30

狀態: 離線
 
發表於 2005-10-31 17:09  資料  個人空間  短消息  加為好友 
INSERT INTO ← 後面沒有注明那個數據庫
可能
1. 你的數據不是用 cdb_ 開始
2. 那程式語法有問題




 AL8 Forum © All rights reserved.
頂部
 mingsong
 0033440
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 113

精華: 0

積分: 1372 點

現金: 5 元

存款: 5269 元

閱讀權限: 20

註冊: 2005-10-24

狀態: 離線
 
發表於 2005-10-31 17:25  資料  個人空間  短消息  加為好友 
你說的這個INSERT INTO是在哪裡找到喔?我想check番呀




 AL8 Forum © All rights reserved.
頂部
 mingsong
 0033440
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 113

精華: 0

積分: 1372 點

現金: 5 元

存款: 5269 元

閱讀權限: 20

註冊: 2005-10-24

狀態: 離線
 
發表於 2005-10-31 17:33  資料  個人空間  短消息  加為好友 
我找到了,在addsong.php裡,而裡面的數據是這樣子。
                {$particular=0;}
        $query=$db->query("insert into cdb_xn_song (sgid,username,touser,songname,songurl,songtype,content,stime,particular) values ('','$discuz_user','$touser','$songname','$songurl','$songtype','$content','$stime','$particular')");
        unset($query);       
        if($topm)

請問我要怎麼修改才對呢?




 AL8 Forum © All rights reserved.
頂部
 Poka
 0000379
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9

頭銜: Administrator

帖子: 6214

精華: 6

積分: 38095 點

現金: 4793 元

存款: 1493911 元

閱讀權限: 120

註冊: 2003-11-30

狀態: 離線
 
發表於 2005-10-31 17:36  資料  個人空間  短消息  加為好友 
不保証可以, 先備份
cdb_xn_song

改為
$table_xn_song




 AL8 Forum © All rights reserved.
頂部
 mingsong
 0033440
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 113

精華: 0

積分: 1372 點

現金: 5 元

存款: 5269 元

閱讀權限: 20

註冊: 2005-10-24

狀態: 離線
 
發表於 2005-10-31 21:55  資料  個人空間  短消息  加為好友 
不行喔…有人知道其他辦法嗎?




 AL8 Forum © All rights reserved.
頂部
 mingsong
 0033440
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 113

精華: 0

積分: 1372 點

現金: 5 元

存款: 5269 元

閱讀權限: 20

註冊: 2005-10-24

狀態: 離線
 
發表於 2005-11-1 09:47  資料  個人空間  短消息  加為好友 
有朋友發生過類似問題呢?




 AL8 Forum © All rights reserved.
頂部
 別問我是誰
 0005547
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9
點擊查看 別問我是誰 的詳細資料

頭銜: Honorary Admin

帖子: 8685

精華: 0

積分: 112195 點

現金: 648 元

存款: 24934 元

閱讀權限: 120

註冊: 2004-8-15

狀態: 離線
 
發表於 2005-11-14 06:59  資料  個人空間  短消息  加為好友 
cdb_xn_song

本人2.2f的 社區俱樂部1.30 點歌台這份檔 是以下的 你參考一下

$tablepre"."clubsong

                {$particular=0;}
        if ($touser == 'allmembers') $touser = "所有人";
        $query=$db->query("insert into $tablepre"."clubsong (sgid,username,touser,songname,songurl,songtype,content,stime,particular) values ('','$discuz_user','$touser','$songname','$songurl','$songtype','$content','$stime','$particular')");
        $query=$db->query("update $tablepre"."members set money = money - $clubsetting[song_fee], power = power - $clubsetting[actionpower] where username='$discuz_user'");
        if($topm)


[此帖最後由 別問我是誰 在 2005-11-14 於 07:00 修改]




小莫小於水滴 自成大海汪洋
細莫細於沙粒 自成大地四方
勤檢就是美德 儲蓄可以致富
莫等閒 白了少年頭 空悲切
 AL8 Forum © All rights reserved.
頂部

聯繫我們 - AL8 Forum - 網頁空間由 I-SERVICES 提供 - Archiver - WAP
清除 Cookies, 當前時區 GMT+8, 現在時間是 2008-11-23 04:19
Processed in 0.126748 second(s), 7 queries , Gzip enabled
Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.