Helps for Zend Framework Developers
How to get the table column names using Database functions
$result = $this->db->query($sql_query);
$result->setFetchMode(Zend_Db::FETCH_NUM);
$metaData = $this->db->describeTable('tableName');
$columnNames = array_keys($metaData);
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)