[eluser]kirtan.n[/eluser]
Is this the output u r expecting
Code:
$this->db->select('tags');
$this->db->where('aprooved', 'yes');
$this->db->limit(50);
$query = $this->db->get('catalog');
$row = $query->result_array();
$tags='';
foreach ($row as $list)
{
$tagline = explode(', ', $list['tags']);
foreach($tagline as $tag)
{
if($tag!='')
{
$tags .= '#' . $tag . ', ';
}
}
}
echo $tags;