Template File: /var/www/html/wp-content/themes/livecloud2017/page-sidebar.php | Template Hierarchy

WP version: 4.9.3
PHP version 5.5.37-1+deprecated+dontuse+deb.sury.org~trusty+1


function cdb_count(pInputA)


This function counts the number of records (either cloud or local) in a given table.


  • pInputA (Array) – Array with the following format:
    • [“cdbTableName”] (String) – The specified table name.
    • [“cdbTarget”] (String) – The place to count the records from, either “cloud” or “local”.


(String) – Contains the numeric count of records in a given table.

Additional Requirements

This API call requires internet access in order to count cloud records.

API Version

  • 0.3.0 – Introduced


local tCount, tInputA

# Table name: clients
# Keys: firstName, lastName, age, income
# There is only 1 record in the table clients on the cloud

put "clients" into tInputA["cdbTableName"]
put "cloud" into tInputA["cdbTarget"]

put cdb_count(pInputA) into tCount

# Output: 1