I have dbase named "promotion_map".: map of table
I'm trying to fetch data form this db but this not working while executing this:
$tpl->assign('prom_maps', $prom_maps->getPromotionMap());
function getPromotionMap() is defined in other php file:
<?php
require_once("../common/qDB3.class.php");
class PromotionMap extends QDB3{
    function PromotionMap($DB){
        $this->tableName = "promotion_map";
        $this->indexField = "id";
        $this->d = array(
            "id"=>"",
            "promotion_id"=>"",
            "type"=>"",
            "period"=>"",
            "name"=>"",
            "duration"=>"",
            "fee"=>"",
        );
        $this->QDB3($DB);
    }
    function getPromotionMap() {
        return $this->DB->getAssoc("SELECT * FROM `{$this->tableName}`");
    }
    function getPromotionMap($id) {
        $id = (int) $id;
        return $this->DB->getRow("SELECT * FROM `{$this->tableName}` WHERE `id` = ?", [$id]);
    }
};
What I'm doing wrong?
I expecting to get table "promotion_map" from table.
 
     
    