Keywords: LAMP/MAMP/WAMP - AWS - Technical issue - Services (Apache, MariaDB, MySQL…)
bndiagnostic ID: 2bbe297f-4649-af6a-0de0-527b0b0b93c0
bndiagnostic output:
? Apache: Found possible issues
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/
bndiagnostic failure reason: The suggested guides are not related with my issue
Description:
As a test I ran the following code recommended by php.net to get the number of records in my table. This code and other PDO code run on my local host but not on your lamp stack. Some PDO code will run on your stack while other code does not. All the PDO code in question will run on my localhost. This is the link to the recommended COUNT(*) snippit. The function call is below the link.
https://www.php.net/manual/en/pdostatement.rowcount.php
public function getFacultyTotal(){
// Total number of records without filtering
$sql = "SELECT COUNT(*) FROM Table Name ";
$results = $this->db->query($sql);
$TotalCount = $results->fetchColumn();
return $TotalCount;