Re: [請益] 無法存到資料庫

看板PHP作者 (沉睡的貓)時間17年前 (2008/05/07 09:16), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/7 (看更多)
※ 引述《liwi ()》之銘言: 43~ : $sql = "UPDATE firm SET name_chinese='$name_chinese', boss='$boss', : contact='$contact', email='$email', phone='$phone', fax='$fax', : address1='$address1', address2='$address2', website='$website', : year_founded='$year_founded', stock='$stock', stockstatus='$stockstatus', : stock_year1='$stock_year1', stock_year2='$stock_year2' WHERE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 上面這串sql語法是怎麼連結的 一般來說,這樣子不會將字串連起來 建議用 echo $sql; 看看出現什麼東西,是否為完整的sql : firm_id='$firm_id'"; : mysql_query($sql, $link_ID); : 資料庫那邊也設好了 : 到底是哪裡出了問題 : 我記得有檢測這個變數是否有傳回資料到資料庫的指令 : acho什麼的 : 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.64.38.166
文章代碼(AID): #188GBbGe (PHP)
文章代碼(AID): #188GBbGe (PHP)