If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: artig
Forum Index » Profile for artig » Messages posted by artig
Author Message
hello guys,

i have implemented the advanced poll 2.08 in the middle of my site like this:

-- snipp --
require_once "/poll_cookie.php";
$poll_path = "/poll";
require_once $poll_path."/include/config.inc.php";
require_once $poll_path."/include/$POLLDB[class]";
require_once $poll_path."/include/class_poll.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();
$php_poll = new poll();
echo $php_poll->poll_process($poll);
-- snipp --

i am reading before and after the poll articles from my database.
the articles before the poll will appear - but after the poll wont.
i have an existing db-connection on the beginning of my site.

is it possible to close the connection after the poll?
($CLASS["db"]->close_db(); or mysql_close(); wont work

is it possible that i wont connect twice by calling "$CLASS["db"]->connect();" - but i think i need the "conn_id"?

(including "mysql_select_db("poll") or die("error");" instead of "$CLASS["db"]->connect();" wont work


thanks for any help
bert
 
Forum Index » Profile for artig » Messages posted by artig
Go to:   
Based on the open source JForum