Welcome Guest, Not a member yet? Register   Sign In
SOLVED: How can i include a foreach loop in the template parser array?
#1

[eluser]Slowcheetah[/eluser]
I can't seem to get the template parser inside a loop. Any solution for this?

Here is my current code:

Code:
// Checkbox loop
if ( isset ($_POST['option']))
{
    $option = $_POST['option'];
    foreach ($option as $option_id)
    {
        $this->db->where('id', $option_id);
        $selected_options = $this->db->get('opties');
    }
};

// Set data
$data = array ('selected_options'=>$selected_options->result_array());

// Parse Template
$this->parser->parse('options_view', $data);


Messages In This Thread
SOLVED: How can i include a foreach loop in the template parser array? - by El Forum - 05-06-2009, 07:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB