| America 24/7 Collection |
| Title | Publisher | Qty Available |
newFindAllCommand('Form View');
// Sort records in descending 'Title' order
$findCommand->addSortRule('Title', 1, FILEMAKER_SORT_ASCEND);
// Execute find command
$result = $findCommand->execute();
if (FileMaker::isError($result)) {
echo "Error: " . $result->getMessage() . "\n";
exit;
}
// Get array of found records
$records = $result->getRecords();
// Print out found records
// Setup row count variable to alternate row background color
$row = 0;
foreach ($records as $record) {
// if $row is odd, set class of to alt-row-color
if ($row % 2 == 0) {
echo "
";
} else {
echo "
";
}
echo "| getRecordId() . "\">" . $record->getField('Title') . " | ";
echo "" . $record->getField('Publisher') . " | ";
echo "" . $record->getField('Quantity in Stock') . " | ";
echo "
";
$row++;
}
?>
| Create New Record |