看板 PHP 關於我們 聯絡資訊
各位大大安好 想請問 http://ppt.cc/OtRM 這圖中為什麼 前者的 valeue->row[0] 會錯誤 可是 Echo 卻是可以正確的輸出 感覺echo對 前者沒有道理不對 QQ 還是我雙引號那邊處理錯誤了嗎....(我下面其他雙引號之前compile會過 error是這樣顯示的 Catchable fatal error: Object of class stdClass could not be converted to string 先謝謝大家 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.113.66.46 ※ 文章網址: http://www.ptt.cc/bbs/PHP/M.1401718511.A.D8C.html ※ 編輯: orz811017 (140.113.66.46), 06/02/2014 22:18:56
MOONRAKER:SQL字串用 ' 夾起來就好,何必在雙引號裡面又用雙引號 06/03 00:04
MOONRAKER:在雙引號內引用物件的安全方法是{$物件->屬性} 06/03 00:06
orz811017:感謝樓上大大的告知!!! 06/05 10:52