<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Combining Advanced Poll with other PHP on a page"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Combining Advanced Poll with other PHP on a page"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Combining Advanced Poll with other PHP on a page</title>
				<description><![CDATA[ Hi.  As goes the usual disclaimer around here, I don't know very much PHP, but I've been asked to work with it, so here I am.  If any kind soul out there replies, assume I know nothing and walk me through the answer.<br /> <br /> Here's the problem.  I want to include a poll on a page already created dynamically with PHP.  I don't understand PHP's syntax very well and my bungled attempts are keeping the page from loading completely.<br /> <br /> Here's what's going on:<br /> <br /> [code]&lt;?php<br /> // Important! You have to include it before your html code<br /> include_once &quot;/usr/home/sites/www.website.com/poll/db/poll_cookie.php&quot;;<br /> ?&gt;<br /> <br /> &lt;?php<br /> <br /> # Include necessary files here<br /> include &#40;&quot;blah.php&quot;&#41;;<br /> <br /> # Left column<br /> $LeftWindow = FormatLeftColumn&#40;&#41;;<br /> <br /> # Main column<br /> $MainWindow = &quot;<br /> <br /> &lt;table border=0 cellpadding=0 cellspacing=10 width=600 align=center&gt;<br />     &lt;tr&gt;<br />         &lt;td valign=top&gt;<br /> 		<br /> <br /> &lt;?php <br /> include_once &quot;/usr/home/sites/www.unknowncountry.com/poll/db/booth.php&quot;;<br /> $php_poll-&gt;set_template_set&#40;&quot;Custom Template&quot;&#41;;<br /> echo $php_poll-&gt;poll_process&#40;&quot;newest&quot;&#41;;<br /> ?&gt;<br /> 		<br />        &lt;/td&gt;<br />     &lt;/tr&gt;<br /> &lt;/table&gt;<br /> <br /> &quot;;<br /> <br /> # Main page<br /> include &#40;&quot;main.phtml&quot;&#41;;<br /> <br /> ?&gt;<br /> [/code]<br /> <br /> I've played with it a few different ways, trying:<br /> <br /> [code]<br /> # Main column <br /> $MainWindow = &quot; <br /> <br /> &lt;table border=0 cellpadding=0 cellspacing=10 width=600 align=center&gt; <br />     &lt;tr&gt; <br />         &lt;td valign=top&gt;&quot;;<br />        <br /> <br /> &lt;?php <br /> include_once &quot;/usr/home/sites/www.unknowncountry.com/poll/db/booth.php&quot;; <br /> $php_poll-&gt;set_template_set&#40;&quot;Custom Template&quot;&#41;; <br /> echo $php_poll-&gt;poll_process&#40;&quot;newest&quot;&#41;; <br /> ?&gt; <br />        <br />        &quot;&lt;/td&gt; <br />     &lt;/tr&gt; <br /> &lt;/table&gt; <br /> <br /> &quot;; <br /> <br /> # Main page <br /> include &#40;&quot;main.phtml&quot;&#41;; <br /> <br /> ?&gt; <br /> [/code]<br /> <br /> But all that got me was either the Poll by itself, or the Poll in the upper left corner and the rest of the website below it.  I want the poll to sit in the center of the larger table it's contained in.  There isn't anything obvious in the template file I'm using that looks like it would break stuff, so I'm confused.<br /> <br /> Can anyone out there show me how to do what I'm trying to do?<br /> <br /> Thanks!<br /> <br /> Daniel]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/1086/2775.php</guid>
				<link>https://proxy2.de/forum/posts/preList/1086/2775.php</link>
				<pubDate><![CDATA[Tue, 15 Oct 2002 03:40:58]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>RE: Combining Advanced Poll with other PHP on the page</title>
				<description><![CDATA[ Hi Daniel,<br /> I find that working from a model usually helps me.  I'm also a newbie but have had some success with what I think you're trying to do.  Here's the code from my page.  Good luck!<br /> Paul<br /> <br /> [code]<br /> &lt;?php<br /> //Important!You have to include it before your html code<br /> include_once&quot;/var/www/html/poll/poll_cookie.php&quot;;<br /> ?&gt;<br /> <br /> &lt;html&gt;<br /> &lt;body bgcolor=&quot;000066&quot;&gt;<br /> &lt;center&gt;&lt;table width=&quot;75%&quot;&gt;<br /> &lt;tr&gt;<br /> &lt;td valign=&quot;top&quot;&gt;&lt;?php<br /> include_once&quot;/var/www/html/poll/booth.php&quot;;<br /> echo $php_poll-&gt;poll_process &#40;2&#41;;<br /> ?&gt;<br /> &lt;/td&gt;<br /> &lt;td&gt;&lt;?php<br /> include_once&quot;/var/www/html/poll/booth.php&quot;;<br /> echo $php_poll-&gt;poll_process&#40;3&#41;;<br /> ?&gt;<br /> &lt;/td&gt;<br /> &lt;td bgcolor=&quot;white&quot; valign=&quot;top&quot;&gt;This is my other column of stuff.  It could just as easily be on<br /> &lt;/tr&gt;<br /> &lt;/table&gt;&lt;/center&gt;<br /> &lt;a href=&quot;/&quot;&gt;&lt;font color=&quot;white&quot;&gt;Return to Curriculum Integrators Home&lt;/font&gt;&lt;/a&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;<br /> [/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/1086/2803.php</guid>
				<link>https://proxy2.de/forum/posts/preList/1086/2803.php</link>
				<pubDate><![CDATA[Wed, 16 Oct 2002 18:57:44]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
	</channel>
</rss>