<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Advanced Poll - &quot;1046 No Database Selected&quot;"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Advanced Poll - &quot;1046 No Database Selected&quot;"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Advanced Poll - &amp;quot;1046 No Database Selected&amp;quot;</title>
				<description><![CDATA[ Hi there,<br /> <br /> I've been using the non-DB version of the Advanced Poll on my site for some time now... however, I'm currently redesigning my site to make the whole thing DB driven, and as such decided to change to the DB version of Advanced Poll.<br /> <br /> Now, here's where the odd problem comes in, which I've thus far not found a fix for - <br /> <br /> My pages are constructed using various php includes, and the one containing the current poll works just fine as a file in it's own right - but when included in the overall layout, it gives the following error:<br /> <br /> [code]<br /> Database Error<br /> --------------------------------------------------------------------------------<br /> <br /> MySQL Error &#58; Database Error<br /> Error Number&#58; 1046 No Database Selected<br /> Date        &#58; Sun, June 27, 2004 07&#58;42&#58;06<br /> IP          &#58; ***.***.***.***<br /> Browser     &#58; Mozilla/4.0 &#40;compatible; MSIE 6.0; Windows NT 5.1&#41;<br /> Referer     &#58; http&#58;//www.shiningforcecentral.com/****/polls.php?poll_id=1<br /> PHP Version &#58; 4.3.3<br /> OS          &#58; Linux<br /> Server      &#58; Apache<br /> Server Name &#58; www.shiningforcecentral.com<br /> Script Name &#58; /****/index.php<br /> [/code]<br /> <br /> (some bits starred-out for privacy - the redesign is not ready for people to visit yet ;))<br /> <br /> I've tried removing some of the other includes (particularly those which utilise the database) but haven't yet found a way to make this work... and ideally, I don't want to have to remove my other includes, the page kinda needs them ;)<br /> <br /> This is the code I'm using to display the poll:<br /> [code]<br /> &lt;?php<br /> <br /> /* path */ <br /> <br /> $poll_path = &quot;/home/virtual/****/fst/var/www/****/****/polls&quot;;<br /> <br /> require $poll_path.&quot;/include/config.inc.php&quot;;<br /> require $poll_path.&quot;/include/$POLLDB&#91;class&#93;&quot;;<br /> require $poll_path.&quot;/include/class_poll.php&quot;;<br /> $CLASS&#91;&quot;db&quot;&#93; = new polldb_sql;<br /> $CLASS&#91;&quot;db&quot;&#93;-&gt;connect&#40;&#41;; <br /> <br /> $php_poll = new poll&#40;&#41;;<br /> <br /> /* the first poll */ <br /> $php_poll-&gt;set_max_bar_length&#40;80&#41;; <br /> echo $php_poll-&gt;poll_process&#40;1&#41;;<br /> ?&gt;<br /> [/code]<br /> <br /> The page I'm including the full poll archive on works just fine.<br /> <br /> Any tips? Anyone also had this problem and know a fix?<br /> <br /> Cheers!]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3292/8855.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3292/8855.php</link>
				<pubDate><![CDATA[Sun, 27 Jun 2004 19:51:07]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re: Advanced Poll - &amp;quot;1046 No Database Selected&amp;quot;</title>
				<description><![CDATA[ [quote="Moogie"][code]<br /> Database Error<br /> --------------------------------------------------------------------------------<br /> <br /> MySQL Error &#58; Database Error<br /> Error Number&#58; 1046 No Database Selected<br /> Date        &#58; Sun, June 27, 2004 07&#58;42&#58;06<br /> IP          &#58; ***.***.***.***<br /> Browser     &#58; Mozilla/4.0 &#40;compatible; MSIE 6.0; Windows NT 5.1&#41;<br /> Referer     &#58; http&#58;//www.shiningforcecentral.com/****/polls.php?poll_id=1<br /> PHP Version &#58; 4.3.3<br /> OS          &#58; Linux<br /> Server      &#58; Apache<br /> Server Name &#58; www.shiningforcecentral.com<br /> Script Name &#58; /****/index.php<br /> [/code][/quote]<br /> <br /> Well going by the code it looks like you haven't specified a database or put in an incorrect one in include/config.inc.php.<br /> <br /> - Auron]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3292/8856.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3292/8856.php</link>
				<pubDate><![CDATA[Sun, 27 Jun 2004 20:01:21]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
	</channel>
</rss>