<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "rigging advanced poll to use an existing connection"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "rigging advanced poll to use an existing connection"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>rigging advanced poll to use an existing connection</title>
				<description><![CDATA[ Im not all that familar with oop but I am attempting to recycle a current connection, and all i am getting is errors.  This is what i have done.<br /> [code]<br /> function createpage($layout, $content, $navi) {<br /> 	global $li, $name;<br /> 	$template = "$layout";<br /> 	$header = rettemp('header');<br /> 	$copyright = rettemp('copyright');<br /> 	$title = "$li" . rettemp('title');<br /> 	$poll_path = "/home/unn/public_html/c/poll";<br /> 	require $poll_path."/include/config.inc.php";<br /> 	require $poll_path."/include/$POLLDB[class]";<br /> 	require $poll_path."/include/class_poll.php";<br /> 	//$CLASS["db"] = new polldb_sql;<br /> 	//$CLASS["db"]-&gt;connect();<br /> 	$php_poll = new poll();<br /> 	$poll = $php_poll-&gt;poll_process("random");<br /> 	if ( $name == 'unn' ) { <br /> 		$nava = mysql_query("SELECT * FROM nav WHERE protect='0'");<br /> 		while ($navb = mysql_fetch_array($nava)) {<br /> 			$navi .= "&lt;a href=\"$navb[url]\" title=\"$navb[blurb]\" target=\"$navb[target]\"&gt;$navb[text]&lt;/a&gt;&lt;br&gt;\n";<br /> 		} <br /> 	} else {<br /> 		$nava = mysql_query("SELECT * FROM nav WHERE protect='0' and protect='1'");<br /> 		while ($navb = mysql_fetch_array($nava)) {<br /> 			$navi .= "&lt;a href=\"$navb[url]\" title=\"$navb[blurb]\" target=\"$navb[target]\"&gt;$navb[text]&lt;/a&gt;&lt;br&gt;\n";<br /> 		}  <br /> 	}  	<br /> 	$layouts = mysql_query("SELECT page FROM data WHERE name='".addslashes($template)."'");<br /> 	if($layouts != ""){<br /> 		$layouts = mysql_fetch_array($layouts);<br /> 		$layouts = addslashes("$layouts[page]");<br /> 		eval ("\$layouts = \"$layouts\";");<br /> 		$layouts = stripslashes("$layouts");<br /> 		echo "$layouts";<br /> 	<br /> 	} else {<br /> 		echo "There seems to be a problem with the layout you are trying to call.";<br /> 		exit();<br /> 	}<br /> }<br /> [/code]<br /> So i edited out the connection.  But am left with Fatal error: Call to a member function on a non-object in /home/unn/public_html/c/poll/include/class_poll.php on line 33.  Anyone have an idea?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/856/2157.php</guid>
				<link>https://proxy2.de/forum/posts/preList/856/2157.php</link>
				<pubDate><![CDATA[Wed, 17 Jul 2002 15:38:24]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>problem solved</title>
				<description><![CDATA[ i just got rid of my old connection and used the connection for ap.  Although i had to merge the database.  Works well.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/856/2158.php</guid>
				<link>https://proxy2.de/forum/posts/preList/856/2158.php</link>
				<pubDate><![CDATA[Wed, 17 Jul 2002 15:54:40]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
	</channel>
</rss>