![]() |
This is the latest threads on the front of the page hack
How would I excluse forum 9 from being shown? I know this has been discussed here but the other code does not match mine.. Thanks in advance <?php // Set this to the max number of threads to display $maxthreads = 3; require("admin/config.php"); $db=mysql_connect($servername,$dbusername,$dbpassw ord); mysql_select_db($dbname); $query = "SELECT * FROM thread ORDER BY lastpost DESC LIMIT $maxthreads"; $resultlatest = mysql_query($query,$db); while ($latest_array = mysql_fetch_array($resultlatest)) { echo "<img src=\"/forums/images/smalldoc.gif\" width=\"4\" height=\"4\" alt=\">\" border=\"0\" align=\"absmiddle\"><FONT SIZE=\"1\" FACE=\"Verdana, Arial, Helvetica, sans-serif\"> <a href=\"/forums/showthread.php?threadid=$latest_array[threadid]\">$latest_array[title]</a></FONT><BR>"; } ?> |
Quote:
PHP Code:
|
Thanks Man
Chris |
All times are GMT. The time now is 05:59 AM. |
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:
|