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 
close_db (advanced poll 2.08)  XML
Forum Index » Support Forum
Author Message
artig
Newbie

Joined: 15/03/2010 16:53:30
Messages: 1
Offline

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
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Sounds like a conflict somewhere possibly in database connection names or even just a variable.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum