Display TotalRecordCount online with the PHP API

Discussion created by carmean on Jul 13, 2017
Latest reply on Jul 13, 2017 by carmean

Using FileMaker's PHP API, I want to get the total record count for the table of the active layout.  I took me a long time to find it so I am sharing this...


<?php    $total = $result->getTableRecordCount();

              echo $total;

              if  (( ($statusLinks['records']['foundcount']))  ==  $total )


              echo "<meta HTTP-EQUIV='REFRESH' content='1; url=index.php'>"  ;




(Probably obvious to most of you and you may have a better way of showing ).


This file should only be accessed after a search for a subset limiting the number of records so I forward them back to the index file if they find all.