我是如何解决这个错误的,因为我是PHP和MySQL的新手,请帮助我

时间:2018-03-12 07:01:33

标签: php mysql

  

致命错误:未捕获错误:调用未定义的方法   Database :: resultset()in   C:\ xampp \ htdocs \ askit \ libraries \ Subject.php:24堆栈跟踪:#0   C:\ xampp \ htdocs \ askit \ index.php(13):Subject-> getAllTopics()#1 {main}   在第24行的C:\ xampp \ htdocs \ askit \ libraries \ Subject.php中抛出

1 个答案:

答案 0 :(得分:0)

尝试将semicolon放在查询的末尾。

SELECT topics.*, users.username, users.profilepic, catogories.name 
FROM topics 
INNER JOIN users ON topics.user_id = users.id 
INNER JOIN catogories ON topics.catogory_id = catogories.id 
ORDER BY create_date DESC;