vote_poll
Usage: bool vote_poll (int topicid, int optionid)
Purpose: Casts a vote in a poll.
Availability: IPB SDK 0.5
Purpose: Casts a vote in a poll.
Availability: IPB SDK 0.5
Casts vote optionid in the poll in topic topicid. Returns TRUE on success.
If the user is not logged in, has already voted, or an invalid poll or option is specified, FALSE will be returned. The full error message can be accessed with sdk_info.
Note that the optionid starts from 0, and not 1.
// Casts a Vote for the 2nd option in the poll in Topic 23
$SDK->vote_poll ("23", "1");
$SDK->vote_poll ("23", "1");
See Also: nullvote_poll
User Contributed Notes
Documentation Generated at Sat, 16 Apr 2005 07:36:35 -0700
Find the latest version at http://ipbsdk.sourceforge.net
There are currently no user contributed notes for this page.