public function getColumnNames($database, $table, $link = null)
{
$sql = $this->getColumnsSql($database, $table);
// We only need the 'Field' column which contains the table's column names
$fields = array_keys($this->fetchResult($sql, 'Field', null, $link));
if (!is_array($fields) || count($fields) == 0) {
return null;
}
return $fields;
}