List of persons with very basic personal data

The following client script will get a list of persons with very basic personal data (family/first names, DOB, zip code, sex, death date, record status) and display it in a table. (Pls. scroll down)

// Load the library

// Create the client and connect to the remote server
$client = new IXR_Client('');

// Create the header and supply the username and password
$header['usr'] = 'hxp';
$header['pw'] = 'hxp';

// Call the remote procedure
if (!$client->query('Person.List', $header)){
	// If error, show info
	echo ('An error occured - '.$client->getErrorCode().' : '.$client->getErrorMessage();


	// Get the result
	$response = $client->getResponse();

	// Display the result
	echo '<TABLE BORDER=0>';

	echo "<TR>
	<TD> PID </TD>
	<TD> Family name </TD>
	<TD> First name </TD>
	<TD> Date of birth </TD>
	<TD> Zip </TD>
	<TD> Sex </TD>
	<TD> Death date </TD>
	<TD> Record status </TD>
	while(list($x,$v) = each($response)){
		echo "<TR>";
		while(list($y, $z) = each($v)){
			echo '<TD>'.$v.'</TD>';
		echo "</TR>";

	echo '</TABLE>';

©2004 HXP All rights reserved