I have in one of my config files all the table definitions, eg.
define('tbl_admin', 'site_admin');
I'm using PDO statement to get some values from the table, but i'm unable to call up the 'site_admin' table.
My code as follows:
$db=new database();
$pdo_db_connx=$db->PDO_database();
$smt=$pdo_db_connx->prepare("select id from tbl_admin where admin=:username");
$smt->bindParam(":username",$username);
Any advise please?