public function get_column($table, $column, $condition=null, $value=null)
{
$this->db->select($column);
if ($condition != null)
{
$this->db->where($condition, $value);
}
$temp = $this->db->get($table);
$temp_array = array();
foreach ($temp->result() as $row)
{
$temp_array[] = $row->$column;
}
return $temp_array;
}