MOON
Server: Apache
System: Linux 3-228-103-98.cprapid.com 3.10.0-1160.62.1.el7.x86_64 #1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64
User: api (1001)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/api/public_html/charlottesville/get-search-results-count.php
<?php
require( "php/config.php" );

$oRes = new Result( "SearchResultsCount" );
$oSearch = new Search();
$oSearch->returnCount( true );
$oSearch->setActive( true );

foreach ( $_GET as $k => $v )
    $oSearch->setVal( $k, $v );

$aResult = $oSearch->doQuery();
if ( isset( $aResult["TotalRecords"] ) )
    $oRes->addData( $aResult["TotalRecords"], "TotalRecords" );
//$oRes->addData( $oSearch->aSQLStatements, "sql" );
print $oRes->getJSON();