Welcome Guest, Not a member yet? Register   Sign In
Passing 2 Variables to your view error
#2

[eluser]portgaz[/eluser]
Code:
<?php

$this->load->view('includes/header');

$this->load->view($pageInfo['main_content']);

$this->load->view('includes/footer');

?>

Code:
<article>
        &lt;?php if(isset($dbData['records'])) : foreach($dbData['records'] as $row): ?&gt;
        <h2>
        &lt;?=echo $row->title;?&gt;
        <h6>Posted on <strong>&lt;?=echo $row->date;?&gt;</strong> at <strong>&lt;?=echo $row->time;?&gt;</strong> | 10 Comments</h6>
        <p>&lt;?=echo $row->body;?&gt;</p>

        </h2>
    </article>

I never tested this but i hope this helps! Tongue


Messages In This Thread
Passing 2 Variables to your view error - by El Forum - 07-25-2011, 06:58 PM
Passing 2 Variables to your view error - by El Forum - 07-25-2011, 10:04 PM
Passing 2 Variables to your view error - by El Forum - 07-25-2011, 10:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB