![]() |
how I can post the total number of threads in a certain forum on a non-vb page??
|
Here is a start. I have no idea how to do the query. Can anyone help??
<?php // Set this to the Forum ID to display $forum = 20; require("forum/admin/config.php3"); $db=mysql_connect($servername,$dbusername,$dbpassw ord); mysql_select_db($dbname); $forumtitle=htmlspecialchars($forum[title]); $numberthreads=$forum[threadcount]; <A HREF="forumdisplay.php3?forumid=$forum">$forumtitl e</A> has $numberthreads Threads. ?> |
90 Views and no one wants to help...
|
It's not that we don't WANT to help, many of us don't know HOW to help.
|
Quote:
http://www.vbulletin.com/forum/showt...?threadid=2658 |
here's what the thread had further down
Code:
<?php |
Code:
$query = "select * from thread"; Code:
SELECT COUNT(*) FROM thread -Chris [Edited by Chris Schreiber on 09-08-2000 at 04:58 PM] |
chris i tried SELECT COUNT(*) FROM thread
and it displayed my total thread count = 1 ? |
Quote:
I can't check this now, but I will take a look at this later tonight.... this is valid SQL, I even checked here to make sure: http://www.mysql.com/documentation/m...=Counting_rows -Chris |
|
All times are GMT. The time now is 07:12 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|