0
我已經在這個網站上搜索,看不到任何明顯的,我做錯了,但我的查詢不工作,並返回警告:mysql_fetch_array()期望參數1是資源,布爾給出錯誤爲什麼第二次連接在我的查詢中不起作用?
$sql2 = "SELECT users.user_id, users.username, users.profile, post_id, post_content, post_date, post_topic, post_by, topics.category, topic.sub_category
FROM `posts`
JOIN `users` on posts.post_by = users.user_id WHERE post_topic='$id'
JOIN `topics` on posts.post_topic = topics.topic_id";
這樣做了,謝謝:) – user2571547