看板 [ PHP ]
討論串[請益] codeigniter跟資料庫取資料時會報錯
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 7→)留言7則,0人參與, 最新作者ireullin (raison detre)時間12年前 (2013/07/02 06:48), 編輯資訊
0
0
0
內容預覽:
我根據版友建議使用了var_dump查看資料內容. 內容是正確的. array(31) { [0]=> object(stdClass)#18 (2) { ["specialty_id"]=> string(1) "1"["specialty_name"]=> string(9) "小兒科" } [
(還有3695個字)

推噓1(1推 0噓 2→)留言3則,0人參與, 最新作者ireullin (raison detre)時間12年前 (2013/07/01 17:11), 編輯資訊
0
0
0
內容預覽:
程式會報錯. Severity: Notice. Message: Trying to get property of non-object. Filename: controllers/specialty.php. Line Number: 61. $cnt確定有筆數而且是正確的. 但是取資料的時
(還有830個字)
首頁
上一頁
1
下一頁
尾頁