<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Display Results of all Polls"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Display Results of all Polls"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Display Results of all Polls</title>
				<description><![CDATA[ Hello. I need to display all results of my polls at one page.<br /> <br /> Here my php code for the future include:<br /> <br /> [code]&lt;?php<br /> <br /> /* path */<br /> $poll_path = &quot;/home/teamlea5/public_html/poll&quot;;<br /> <br /> require $poll_path.&quot;/include/config.inc.php&quot;;<br /> require $poll_path.&quot;/include/class_poll.php&quot;;<br /> require $poll_path.&quot;/include/class_pollcomment.php&quot;;<br /> <br /> $php_poll = new pollcomment&#40;&#41;;<br /> <br /> /* poll */<br /> $php_poll-&gt;set_template_set&#40;&quot;plain&quot;&#41;;<br /> $php_poll-&gt;set_max_bar_length&#40;125&#41;;<br /> $php_poll-&gt;set_max_bar_height&#40;10&#41;;<br /> echo $php_poll-&gt;view_poll_result&#40;1&#41;;<br /> echo $php_poll-&gt;view_poll_result&#40;2&#41;;<br /> echo $php_poll-&gt;view_poll_result&#40;3&#41;;<br /> echo $php_poll-&gt;view_poll_result&#40;4&#41;;<br /> echo $php_poll-&gt;view_poll_result&#40;5&#41;;<br /> echo $php_poll-&gt;view_poll_result&#40;6&#41;;<br /> echo $php_poll-&gt;view_poll_result&#40;7&#41;;<br /> <br /> <br /> /* poll comments */<br /> $php_poll-&gt;set_template&#40;&quot;poll_comment&quot;&#41;;<br /> $php_poll-&gt;set_comments_per_page&#40;5&#41;;<br /> $php_poll-&gt;set_date_format&#40;&quot;d/m/Y H&#58;i&quot;&#41;;<br /> $php_poll-&gt;data_order_by&#40;&quot;time&quot;,&quot;desc&quot;&#41;;<br /> echo $php_poll-&gt;view_poll_comments&#40;1&#41;;<br /> echo $php_poll-&gt;get_comment_pages&#40;1&#41;; <br /> <br /> ?&gt;[/code]<br /> <br /> And here is result - http://teamleague.ru/pages/showbets.php<br /> <br /> But including [b]echo $php_poll-&gt;view_poll_result(x);[/b] for each poll it's not perfect.. How can i modify my code?  :shock: <br /> <br /> [i]P.S. Sorry for my english :D[/i]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4734/16581.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4734/16581.php</link>
				<pubDate><![CDATA[Wed, 15 Jun 2005 16:21:10]]> GMT</pubDate>
				<author><![CDATA[ HaveNoFear]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Only way to make it more efficient would be to use a loop to go through them all.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4734/16586.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4734/16586.php</link>
				<pubDate><![CDATA[Thu, 16 Jun 2005 21:14:43]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [code]for &#40;$i = 0; $ &lt; 8; $++&#41;<br /> &#123;<br />     echo $php_poll-&gt;view_poll_result&#40;$i&#41;;<br /> &#125;[/code]<br /> <br /> Change 0 to the starting poll' id number.<br /> Change 8 to the ending poll' id number.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4734/16587.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4734/16587.php</link>
				<pubDate><![CDATA[Thu, 16 Jun 2005 22:03:13]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Naturally changing the 8 for the number of your last poll. Would you start it from 0 though? I thought the first three polls were demo ones ?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4734/16588.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4734/16588.php</link>
				<pubDate><![CDATA[Thu, 16 Jun 2005 22:06:02]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Thx, It will help.<br /> <br /> And now a new question:<br /> <br /> [i]How Can i display Resulit for only [b]active[/b] polls [/i]?  <img src="https://proxy2.de/forum//images/smilies/385970365b8ed7503b4294502a458efa.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4734/16590.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4734/16590.php</link>
				<pubDate><![CDATA[Thu, 16 Jun 2005 22:43:18]]> GMT</pubDate>
				<author><![CDATA[ HaveNoFear]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ hi HaveNoFear,<br /> when i run the code you show,there are some error informations<br /> <br /> Fatal error: Call to a member function fetch_array() on a non-object in C:\AppServ\www\vote\include\class_poll.php on line 36<br /> <br /> can you show me how to solve it? thanks a lot.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4734/24136.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4734/24136.php</link>
				<pubDate><![CDATA[Tue, 22 Jul 2008 04:49:58]]> GMT</pubDate>
				<author><![CDATA[ EricCai]]></author>
			</item>
	</channel>
</rss>