[eluser]Michal1[/eluser]
Hello guys,
I have been working on one script and I am stuck at filling my array. What I have in my view is this code
Code:
$backlinkSources = array ();
foreach ($backlinkSources as $roww) {
$backlinkSources = array (
'name_thems'=>$roww->name_them,
);
}
Then in my one controller function I have this array
Code:
$data = array(
'name_them'=>$this->input->post('name_them')
);
$this->site_model->insert_data($data);
And basically what I want to do is to take that name_them in my site_view and pass it into that name_thems field
Code:
array $backlinkSources = array (
'name_thems'=> something
But it does not work. Does somebody know what am I doing wrong? Please answer me as easy as possible as I am a beginner.
Thank you