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 
Display Results of all Polls  XML
Forum Index » Support Forum
Author Message
HaveNoFear
Newbie

Joined: 15/06/2005 16:16:16
Messages: 2
Offline

Hello. I need to display all results of my polls at one page.

Here my php code for the future include:



And here is result - http://teamleague.ru/pages/showbets.php

But including echo $php_poll->view_poll_result(x); for each poll it's not perfect.. How can i modify my code?

P.S. Sorry for my english
Carbonize
Master
[Avatar]

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

Only way to make it more efficient would be to use a loop to go through them all.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline



Change 0 to the starting poll' id number.
Change 8 to the ending poll' id number.

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Carbonize
Master
[Avatar]

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

Naturally changing the 8 for the number of your last poll. Would you start it from 0 though? I thought the first three polls were demo ones ?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
HaveNoFear
Newbie

Joined: 15/06/2005 16:16:16
Messages: 2
Offline

Thx, It will help.

And now a new question:

How Can i display Resulit for only active polls ?
EricCai
Newbie

Joined: 18/07/2008 17:30:46
Messages: 2
Offline

hi HaveNoFear,
when i run the code you show,there are some error informations

Fatal error: Call to a member function fetch_array() on a non-object in C:\AppServ\www\vote\include\class_poll.php on line 36

can you show me how to solve it? thanks a lot.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum