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 ""; echo ""; echo ""; echo ""; $row++; } ?>
America 24/7 Collection
TitlePublisherQty Available
getRecordId() . "\">" . $record->getField('Title') . "" . $record->getField('Publisher') . "" . $record->getField('Quantity in Stock') . "
Create New Record