[eluser]kirtan.n[/eluser]
Try this, I think this should work.
Code:
$this->db->select('tags');
$this->db->where('aprooved', 'yes');
$this->db->limit(50);
$query = $this->db->get('catalog');
$row = $query->result_array();
foreach ($row as $list)
{
$tagline = explode(', ', $list['tags']);
foreach($tagline as $tag)
{
$tags[] = '#' . $tag;
}
}
echo '<pre>';print_r($tags);echo '</pre>';