views:

378

answers:

0

In AS3 I can retrieve data via Zend just fine using this:

nc.call("Service.addNewService", responder);

But I'm having trouble when I want to ADD data to the database. To do so I need to pass in parameters to the php class. I can't find any documentation on how to pass multiple parameters.

var params = new Array("one", "two", "etc");
var nc:NetConnection = new NetConnection();
nc.connect("http://mydomain.com/zendboot.php");
var res:Responder = new Responder(onDBReturn, onDBError);
nc.call("Service.addNewService", responder, params);

How do you configure "params" to be read in by the php method?

public function addNewService($arr)
{
  //compose sql query and add to DB
  $inputOne = $arr[0];
  //etc.
}