QuotePHP Fatal error: Uncaught Error: Call to undefined function exec() in
Quote from: phill104 on March 29, 2025, 10:44:48 AMYes. We have had no reports of any security issues.
$result = cpg_db_query("SELECT COUNT(msg_id) FROM {$CONFIG['TABLE_COMMENTS']} WHERE pid='$pid'"); list($num) = mysqli_fetch_row($result);
$result = cpg_db_query("SELECT COUNT(msg_id) FROM {$CONFIG['TABLE_COMMENTS']} WHERE pid='$pid'");
// Check if $result is an instance of CPG_DbaseResult
if ($result instanceof CPG_DbaseResult) {
// Use the appropriate fetch method for CPG_DbaseResult
$row = $result->fetchRow(); // Hypothetical method; verify the actual method in your library
$num = $row[0];
} else {
// Handle unexpected result type
die("Error: Invalid query result type.");
}
Page created in 0.648 seconds with 13 queries.