XML RPC Server - Indexed array problem |
[eluser]CarNinja[/eluser]
Hi, Most people seem to be having problems with associative arrays. I'm having a problem with indexed arrays. No matter what I do, I can't seem to get this to return a valid response. Here's the bulk of the code. getbyUserId() returns a result() from an active record db query. Code: $qryRecords = $this->weight_model->getByUserId( $objUser->user_id, 99999, 0, false ); Any help is greatly appreciated. I've been tooling on this for about 4 hours now with no luck, and I've scoured the boards and the user guide as well. Thanks!
[eluser]CarNinja[/eluser]
Bueller? Bueller? I'm still stuck on this... for some reason it just won't take.
[eluser]CarNinja[/eluser]
Ok, so inside of my foreach loop here, I have 1 line that works, and for some reason I can't use a multidimensional array inside of my indexed array. This is killing me... someone has to know what's going on here... Please help, this is the last function before my XMLRPC server is complete. I've been stuck on this for 2 days without a single response from the community. Code: $qryRecords = $this->weight_model->getByUserId( $objUser->user_id, 99999, 0, false );
[eluser]CarNinja[/eluser]
So I ended up finding a solution. I simply modified the information in the existing structure and passed it to the "convert_to_xmlrpc_values" function that I found on the boards. Code: // Pull the weight records Thanks for the help, everybody. 8-/
[eluser]skattabrain[/eluser]
HI CarNinja ... I'm trying to pass a query result back as a response and found this thread. What exactly is $this->convert_to_xmlrpc_values? ... later that minute ... sorry! http://ellislab.com/forums/viewthread/64320/ |
Welcome Guest, Not a member yet? Register Sign In |