<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Stats.php page, doesn't work? :s]]></title>
		<link>https://punbb.informer.com/forums/topic/20063/statsphp-page-doesnt-work-s/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/20063/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Stats.php page, doesn't work? :s.]]></description>
		<lastBuildDate>Thu, 16 Oct 2008 13:30:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Stats.php page, doesn't work? :s]]></title>
			<link>https://punbb.informer.com/forums/post/118384/#p118384</link>
			<description><![CDATA[<p>Is it a mod? Try to contact to its author.</p>]]></description>
			<author><![CDATA[null@example.com (Anatoly)]]></author>
			<pubDate>Thu, 16 Oct 2008 13:30:45 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/118384/#p118384</guid>
		</item>
		<item>
			<title><![CDATA[Re: Stats.php page, doesn't work? :s]]></title>
			<link>https://punbb.informer.com/forums/post/118381/#p118381</link>
			<description><![CDATA[<p>Anyone?<br /> Sorry for bump</p>]]></description>
			<author><![CDATA[null@example.com (Sirenic)]]></author>
			<pubDate>Thu, 16 Oct 2008 11:35:16 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/118381/#p118381</guid>
		</item>
		<item>
			<title><![CDATA[Stats.php page, doesn't work? :s]]></title>
			<link>https://punbb.informer.com/forums/post/118312/#p118312</link>
			<description><![CDATA[<div class="codebox"><pre><code>General Statistics
Stats are updated daily at midnight, last updated 1969-12-31.
Post Count: 0
Topic Count: 0
User Count: 0
Player Count: 0
Active users in past 24h: 0
Active players in past 24h: 0</code></pre></div><br /><p>Lmao, last updated 1969 D:</p><p>A little help here, on getting this to work?</p><p>Here is my full stats.php code..</p><div class="codebox"><pre><code>&lt;?php

define(&#039;PUN_ROOT&#039;, &#039;./&#039;);
require PUN_ROOT.&#039;include/common.php&#039;;

$page_title = pun_htmlspecialchars($pun_config[&#039;o_board_title&#039;].&#039; / Statistics&#039;);
require PUN_ROOT.&#039;header.php&#039;;

$result = $db-&gt;query(&#039;SELECT * FROM &#039;.$db-&gt;prefix.&#039;stats ORDER BY `date` DESC LIMIT 1&#039;) or error(&#039;Unable to fetch stats&#039;, __FILE__, __LINE__, $db-&gt;error());
$stats = $db-&gt;fetch_assoc($result);

?&gt;
&lt;div class=&quot;block&quot;&gt;
    &lt;h2&gt;&lt;span&gt;General Statistics&lt;/span&gt;&lt;/h2&gt;
    &lt;div class=&quot;box&quot;&gt;
        &lt;div class=&quot;inbox&quot; style=&quot;text-align:center&quot;&gt;
            &lt;em&gt;Stats are updated daily at midnight, last updated &lt;?php echo date($pun_config[&#039;o_date_format&#039;], $stats[&#039;date&#039;]); ?&gt;.&lt;/em&gt;&lt;br /&gt;
            Post Count: &lt;?php echo number_format($stats[&#039;posts&#039;]); ?&gt;&lt;br /&gt;
            Topic Count: &lt;?php echo number_format($stats[&#039;topics&#039;]); ?&gt;&lt;br /&gt;
            User Count: &lt;?php echo number_format($stats[&#039;users&#039;]); ?&gt;&lt;br /&gt;
            Player Count: &lt;?php echo number_format($stats[&#039;players&#039;]); ?&gt;&lt;br /&gt;
            Active users in past 24h: &lt;?php echo number_format($stats[&#039;active_users&#039;]); ?&gt;&lt;br /&gt;
            Active players in past 24h: &lt;?php echo number_format($stats[&#039;active_players&#039;]); ?&gt;&lt;br /&gt;
            &lt;img src=&quot;img/stats/posts.png&quot; alt=&quot;&quot; style=&quot;margin:10px&quot; /&gt;&lt;br /&gt;
            &lt;img src=&quot;img/stats/topics.png&quot; alt=&quot;&quot; style=&quot;margin:10px&quot; /&gt;&lt;br /&gt;
            &lt;img src=&quot;img/stats/users.png&quot; alt=&quot;&quot; style=&quot;margin:10px&quot; /&gt;&lt;br /&gt;
            &lt;img src=&quot;img/stats/players.png&quot; alt=&quot;&quot; style=&quot;margin:10px&quot; /&gt;&lt;br /&gt;
            &lt;img src=&quot;img/stats/active_users.png&quot; alt=&quot;&quot; style=&quot;margin:10px&quot; /&gt;&lt;br /&gt;
            &lt;img src=&quot;img/stats/active_players.png&quot; alt=&quot;&quot; style=&quot;margin:10px&quot; /&gt;&lt;br /&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;?php

require PUN_ROOT.&#039;footer.php&#039;;
exit;</code></pre></div><br /><br /><br /><p>I&#039;m guessing this is a sql database problem?</p>]]></description>
			<author><![CDATA[null@example.com (Sirenic)]]></author>
			<pubDate>Mon, 13 Oct 2008 09:46:23 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/118312/#p118312</guid>
		</item>
	</channel>
</rss>
