[eluser]Ivar89[/eluser]
It's anoying me i can't figure out the syntax...I mean with normal php I can do it but with CodeIgniter I am stuck as hell
I just need to get my data from database and acho it in a table.
Code:
function Get_Blog_Data($query)
{
$this->db->select('strBlogTitle', 'ID_Blog', 'ID_Language');
$query = $this->db->get('tblblog');
foreach ($query->result() as $row)
{
$query = $row->strBlogTitle;
}
return $query->result();
}
i tried manyu things but not working...
I probably overlooked something stupid
this is my model btw;
Code:
function index()
{
$this->blog_insert_model->Get_Blog_Data($_POST);
$this->load->view('blog/index');
}