Answer Posted / Vivek Singh
To execute a custom MySQL query in Magento, you can use the `Mage::getSingleton('core/resource')->getConnection()` method. Here's an example:n```n$conn = Mage::getSingleton('core/resource')->getConnection();n$query = 'SELECT * FROM your_table';n$result = $conn->fetchAll($query);n// process the resultn```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers