When writing database queries in modules for Magento it is often helpful to wrap the table names in a core function called “getTableName” this function will then prefix the table name if the install is using prefixes in the database.
To do this:
1 |
Mage::getSingleton('core/resource')->getTableName('table_name_here'); |
Leave a reply