Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] learning how to pass data to a view
#2

[eluser]xwero[/eluser]
The result method gets you an array with as values objects so if you do
Code:
<h2>&lt;?=$header;?&gt;</h2>
<ul>
&lt;?php foreach($query as $movie):?&gt;

<li>&lt;?php echo $movie->name;?&gt;</li>

&lt;?php endforeach;?&gt;
</ul>
You get the result you want.


Messages In This Thread
[SOLVED] learning how to pass data to a view - by El Forum - 09-24-2008, 02:26 AM
[SOLVED] learning how to pass data to a view - by El Forum - 09-24-2008, 02:31 AM
[SOLVED] learning how to pass data to a view - by El Forum - 09-24-2008, 02:39 AM
[SOLVED] learning how to pass data to a view - by El Forum - 09-24-2008, 02:44 AM
[SOLVED] learning how to pass data to a view - by El Forum - 09-24-2008, 11:00 AM
[SOLVED] learning how to pass data to a view - by El Forum - 09-24-2008, 11:13 AM
[SOLVED] learning how to pass data to a view - by El Forum - 09-24-2008, 11:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB