AMFPHP passing a variable

I am calling my getPortfolio method using the code below, I need to pass an id from flash to return the results. Any ideas how I would pass it from flash to my php method?

public function Connector() {

     var res:Responder = new Responder(onResult, onFault);
     var gw:NetConnection = new NetConnection();
    
    gw.connect("http://sp.localhost.com/amfphp/gateway.php");
    gw.call("Mysql.getPortfolio", res);
    
    
    
}

my php

function getPortFolio(id)

{

return mysql_query("select * FROM projects WHERE id='$id'");




}

I am doing the Lee Brimelow tut but he does not go into this.