PHP Code:
<html>
<head>
<title>Forum | Stickies</title>
</head>
</html>
<?php
define("IN_MYBB", 1);
require_once "./global.php";
require_once MYBB_ROOT . "inc/class_parser.php";
$query = $db->query("SELECT * FROM mybb_threads WHERE sticky=1");
while($threads = $db->fetch_array($query))
{
$stickies[] = $threads;
}
for( $i= 0 ; $i < count($stickies) ; $i++ )
{
echo "tid: ",$stickies[$i]['tid'];
echo "<br/>";
echo "username: ",$stickies[$i]['username'];
echo "<br/>";
echo "closed: ",$stickies[$i]['closed'];
echo "<br/>";
echo "subject: ",$stickies[$i]['subject'];
echo "<br/>";
echo "<br/>";
}
?>