이 사이트에서 검색 한 내용이 잘못되었지만 내 쿼리가 작동하지 않고 반환되지 않습니다. 경고 : 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