PDA

View Full Version : look for several values in a db using amfphp


spy
10-14-2005, 03:38 PM
hey hi guys... any ideas on how to ask for a record that contains any of the values i want... i supoose i should use an array, almost i forget using mysql with amfphp, something like this:

i want to return to flash every record that contains NY and alabama

Name Contry State
John us NY
Pierre us Washington
Tony us Alabama

the parameters might be different each time, from flash is something like:

myarray:Array=new Array();
myarray[0]="NY";
myarray[1]="Alabama";
amf_con.params=new Array(myarray);
amf_con.trigger();