Can't figure out whats wrong with this.
$replies_sql = "SELECT COUNT(*) AS total
FROM forum_posts
WHERE forum_posts.thread_id = 1";
I'm trying to calculate the total replies in a specific thread. I am just testing on thread_id 1 at the moment.
Error:
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given