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

[eluser]M4rc0[/eluser]
I have one more question!

Say i want to pass instead of many rows, just one.

That was the browse view, then i'm linking each item as follow:
Code:
<a href="index.php/movie/id_here">(...)</a>

So i click on the item and goes to show, show get's the data from db and etc
My problem is, again, passing the data to the view.

Since i have only one row, i don't need foreach, so then how to do?

I can still use foreach for only one item? Isn't there a way to use $query->name or something?

Thanks!


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