Fetch number of replies to a post – IP.Board

<?php
$result = mysql_fetch_assoc(mysql_query(“SELECT * FROM `topics` WHERE tid='”.$topic_id.”‘”));
echo return $result[‘posts’] ;
?>

Share