Hello,
Great extension. However, i would like to know if it's possible to see and manage data directly in frontend ?? and by different customer...
Best regards.
Dan
$dbName = "sfg_example_contact"; // set source DB table
$db = Mage::getSingleton('core/resource')->getConnection('core_write');
$columns = $db->query("show columns from $dbName")->fetchAll();
$data = $db->query("select * from $dbName order by name")->fetchAll();
echo '<table border="1"><tr>';
foreach ($columns as $column) echo '<td align="center"><b>'.$column['Field'].'</b></td>';
echo '</tr>';
foreach ($data as $value) {
echo '<tr>';
foreach ($columns as $column) echo '<td align="left">'.htmlspecialchars($value[$column['Field']]).'</td>';
echo '</tr>';
}
echo '</table>';$dbName = "sfg_example_contact"; // set source DB table$data = $db->query("select * from $dbName order by name")->fetchAll();Return to SmartFormer Gold for Magento
Users browsing this forum: No registered users and 1 guest