The following code will connect to a server and get two fields from one entry in one form. The field ids for the fields are 2 and 8 in the example.
$Server = new ARAPI( "server", "user", "password" ); $Values = $Server->getentry( "form", "000000000000001", 2, 8 ); foreach( $Value as $k => $v ) { echo "<br>".$k."=".$v; } $Server->termination();
After getting the values the example will print them.
$Server = new ARAPI( "server", "user", "password" ); $Values = $Server->getlistentrywithfields( "form", "(1=1)", 2, 8 ); foreach( $myValues as $e => $r ) { echo "<br>entry id = ".$e; foreach( $r as $k => $v ) { echo "<br>".$k." = ".$v; } } $Server->termination();
After getting the values the example will print them.