Welcome Guest, Not a member yet? Register   Sign In
how is add subject blog to url with _remap and .htaccess? (dynamic)
#11

[eluser]dUspan[/eluser]
Code:
'date_b' => $row->date,

this is your error.

removed ','

Code:
foreach ($query->result() as $row)
    {
        $data = array(
        'subject_b' => $row->subject,
        'title_b' => $row->title,                
        'image_path_b' => $row->image_path,
        'alt_b' => $row->alt,
        'text_b' => $row->text,
        'date_b' => $row->date,
        );
    }
    $this->load->view('miniblog/blog', $data);

im not expert, but try this Big Grin
Code:
$this->view_data['result'] = $query->result();
$this=>load->view('miniblog/blog', $this->view_data);

with this you can generate result now on your View
Code:
foreach($result as $row)
{
//your query row
}


Messages In This Thread
how is add subject blog to url with _remap and .htaccess? (dynamic) - by El Forum - 06-14-2011, 09:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB