Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How do I get a module table name
 
RLF68
Jr. Member
 
Total Posts:  7
Joined:  2009-09-12
 

Hello,

Here is a simple function :

public function myFunction($id,$filename)
    
{

        $db         
Mage::getSingleton('core/resource')->getConnection('core_read');

        
$tableName 'How to get table name here ? ';

        
$result     $db->query("UPDATE ".$tableName." SET `last_updated_file` = '".$filename."' WHERE `id` = ".$id.";");

        
// ...

        
return FALSE;

    
}

Could someone please give me a hint, for how to get the $tableName variable ?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top