I want to connect to my database and get some values of a specific table, that table has a prefix, and that prefix is stored in an array.
$statement = $db->prepare('SELECT * FROM ' . $conf['database']['tableprefix'] . 'candy');
Now I wanted to know, if there is any way, I can replace this $conf['database']['tableprefix']
with a placeholder
, as the prefix and the 'candy' string need to be together without space.