Posts/topics

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Posts/topics

    hi can anyone help me to get the forums and posts number from a particular category i have this but it gets the total topics posts i have tried but couldnt quite get it lol any help b very appreciated

    Code:
    $notc = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics"));
    $nops = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts"));
    else if(getfview()==2)
    {
    echo "<a href=\"index.php?action=viewcat&amp;sid=$sid&amp;cid=$fcat[0]\">$fcat[1]($notc[0]/$nops[0])</a>
    ";
    }

    #2
    i got topics count to work

    Code:
    $notp = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics a INNER JOIN ibwf_forums b ON a.fid = b.id WHERE b.cid=&#39;".$fcat[0]."&#39;"));
    can any1 help with counting the posts lol ill give ya working validation for lava script or popups or owner and head admin scripts lol

    Comment

    Working...
    X