Re: Re: [Jason] showing record count

2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 1, 2021   (RSS)

By Jenna - March 1, 2021

Hi JH,

In this case you could use the `mysql_count` function ( mysql_count($tableName, $whereEtc) ). Used in the below format:

$jeffCount = mysql_count('project_management', "`current_owner` = 'jeff'");

This would return a count for every project associated with Jeff's name. If you needed to filter by other parameters (like project_status = 'active' for example) you could add that to the second part, setting it up like a where clause concatenating with AND/OR etc.

Please let me know if this helps you at all for your situation.

Jenna Cooke - PHP Programmer
interactivetools.com