// set database username and password $contactsListQuery->SetDBUserPass($webUN, $webPW); // add parameter array for new record $contactsListQuery->AddDBParamArray($searchRecordsArray); // create a new record $contactsList = $contactsListQuery->DoFXAction('perform_find'); } else { // otherwise, find all records // configure a connection to FileMaker Server Advanced $contactsListQuery = new FX($serverIP, $webCompanionPort, $dataSourceType); // set database and layout information $contactsListQuery->SetDBData('Contacts.fp7', 'web_list', 'all'); // set database username and password $contactsListQuery->SetDBUserPass($webUN, $webPW); // retrieve all records in this database available to the current user $contactsList = $contactsListQuery->DoFXAction('show_all'); } ?> <html> <head> <title>FX Error Tester</title> </head> <body> <h1>Contact List</h1> <table border="1"> <tr> <th>First Name</th> <th>Last Name</th> <th>Phone Number</th> </tr> <?php