<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Put No. of guestbook entrys on index"]]></title>
		<link>https://proxy2.de/forum/posts/list/5.php</link>
		<description><![CDATA[Latest messages posted in the topic "Put No. of guestbook entrys on index"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Put No. of guestbook entrys on index</title>
				<description><![CDATA[ Hey again,<br /> i want to put the number of guestbook entrys in the index of my website, on the front page, how can i do that!]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5015/18060.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5015/18060.php</link>
				<pubDate><![CDATA[Wed, 14 Sep 2005 18:38:55]]> GMT</pubDate>
				<author><![CDATA[ Sander]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Put this in a file called total.php then put the file into the guestbook folder<br /> [code]&lt;?php<br /> include_once &quot;./admin/config.inc.php&quot;;<br /> include_once &quot;./lib/mysql.class.php&quot;;<br /> <br /> ini_set &#40;'display_errors', 1&#41;;<br /> error_reporting &#40;E_ALL &amp; ~E_NOTICE&#41;;<br /> <br /> if&#40;ereg&#40;&quot;&#58;&quot;,$GB_DB&#91;'host'&#93;&#41;&#41; <br /> &#123;<br />    list&#40;$host,$port&#41; = explode&#40;&quot;&#58;&quot;,$GB_DB&#91;'host'&#93;&#41;;<br />    $port = $port;<br /> &#125; <br /> else <br /> &#123;<br />    $port = 3306;<br /> &#125;<br /> <br /> if &#40;$dbc = @mysql_connect &#40;$GB_DB&#91;'host'&#93;.&quot;&#58;&quot;.$port, $GB_DB&#91;'user'&#93;, $GB_DB&#91;'pass'&#93;&#41;&#41;<br /> &#123;<br />    if &#40;!@mysql_select_db &#40;$GB_DB&#91;'dbName'&#93;, $dbc&#41;&#41;<br />    &#123;<br />       die &#40;'&lt;p&gt;Could not select the database because&#58; &lt;b&gt;'.mysql_error&#40;&#41;.'&lt;/b&gt;&lt;/p&gt;'&#41;;<br />    &#125;<br /> &#125; <br /> else <br /> &#123;<br />    die &#40;'&lt;p&gt;Could not connect to MySQL because&#58; &lt;b&gt;'.mysql_error&#40;&#41;.'&lt;/b&gt;&lt;/p&gt;'&#41;;<br /> &#125;<br /> $query = &quot;select count&#40;*&#41; as total from &quot;.$GB_TBL&#91;'data'&#93;;<br /> $thetotal = mysql_query&#40;$query&#41;;<br /> $row = mysql_fetch_array&#40;$thetotal&#41;;<br /> $total = $row&#91;'total'&#93;;<br /> echo $total;<br /> mysql_close&#40;$dbc&#41;;<br /> ?&gt;[/code]<br /> <br /> then include that file where you want the total to appear using[code]&lt;?php include&#40;&quot;path/to/guestbook/total.php&quot;&#41;; ?&gt;[/code]changing the path/to part to reflect your servers directory structure.<br /> <br /> Just remember that this will query your database everytime somebody views the page it's included on and if you are on a host that limits MySQL queris you could be in trouble.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5015/18061.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5015/18061.php</link>
				<pubDate><![CDATA[Wed, 14 Sep 2005 19:19:06]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
	</channel>
</rss>