-1
ich versuche sammeln ein Array zurück stricken von SQL implodieren, aber ich kann nicht couse ich habe Rückkehr wie dieses ..wie mehrreihige von codeigniter aktiven Datensatz Rückkehr als erste Zeile
Array
(
[0] => Array
(
[name] => tag 1
)
[1] => Array
(
[name] => tag 2
)
)
aber ich möchte zurückkehren wie diese
Array
(
[0] => tag 1
[1] => tag 2
)
und das ist mein Modell
public function gettags($id)
{
$this->db->select('tags.name');
$this->db->from('tags');
$this->db->join('posts_tags', 'posts_tags.tag_id = tags.id', 'left');
$this->db->join('posts', 'posts.id = posts_tags.post_id', 'left');
$this->db->where('posts.id', $id);
$query = $this->db->get();
return $query->result_array();
}
mir helfen Jungs ..
diese
es funktioniert ... Dank bro .. –