Posts/topics

Started on the old forum in June 2007 · view the original in the archive · old links redirect here

1 reply · 666 views · started 19 years ago · 1 min read

linkrx7 #1

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

$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&sid=$sid&cid=$fcat[0]\">$fcat[1]($notc[0]/$nops[0])</a>
";
}
linkrx7 #2

i got topics count to work

$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='".$fcat[0]."'"));

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close