demexp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Demexp-dev] Vote function


From: Diogene Laerce
Subject: [Demexp-dev] Vote function
Date: Fri, 22 Feb 2008 14:18:59 +0700

Hello

Ive got the following code :

___________________________________________________________________
$server = new xmlrpc_client($servAdrss);
$cookie_dm = $HTTP_COOKIE_VARS["root"];//$userid"];

$server->setDebug(1);

$cookie = new xmlrpcval($cookie_dm, "int");
$question_id_t = new xmlrpcval($q_id, "int");

$vote_user = new xmlrpcval("array");
$count = count($vote_array);
for($i=0; $i<$count; $i++)
{
        $vote_user = $vote_user->addScalar($vote_array[$i], "int");
}

$message = new xmlrpcmsg('vote', array($cookie, $question_id_t,
$vote_user));

$result = $server->send($message);
___________________________________________________________________

where $vote_array is the ordered choice of responses.

But the debug answers that vote function takes 4 arguments ?? where the
demexp doc says :

vote(cookie_t, question_id_t, vote_choice_t) ??

Any explanation ? 
Yours,
Diogene










reply via email to

[Prev in Thread] Current Thread [Next in Thread]