Posted by diego_miola on January 16, 2008 at 6:56pm
I've a created a service that creates a simple Array. Here is the code, modified for debug:
/**
* Returns a bla bla bla.
*/
function node_tree_load($vid, $month) {
global $user;
$list = array();
$sql = "select tid,name
from {term_data}
where vid = '$vid'";
$result = db_query($sql);
while($data = db_fetch_object($result)){
$list[] = $data->name;
$nsql = "select n.nid
from {node} as n,{term_node} as tn
where tn.tid = $data->tid
and tn.nid = n.nid
and n.uid = $user->uid
order by n.title";
$nresult = db_query($nsql);
/**************** Problem ***************/
while($ndata = db_fetch_array($nresult)){
$list[] = "hola";
}
/**************** Problem ***************/
}
return $list;
}Here is the result from the Service Browse:
Result
Array
(
[0] => Overview of the Month
[1] => PMP and Training
[2] => Staffing Updates
[3] => hola
[4] => Industry Updates
[5] => Business Unit & Group Initiatives
[6] => Special Issues
[7] => Account Updates
[8] => hola
[9] => hola
)The problem is that when I watch the ArrayCollection that holds this result from Flex Builder I can see all keys excepts: 3,8,9.
I don't understand why ! :(
Sorry for my english and thanks for this great Job.
