Welcome Guest, Not a member yet? Register   Sign In
New to CI
#4

[eluser]nathanashton[/eluser]
Thanks guys.

I have a view that is passing a row id using the url helper.

The link is created as follows:
Code:
.anchor('/passengers/listpassengers/'.$row['sectorid']

This passes the URL passengers/listpassengers/(Rowid)

I'm using this in the listpassengers function:

Code:
$sector=$this->uri->segment(3);

I then want listpassengers function to run a DB query where the id=the returned Rowid.

What do I need in my model (get_where??) and what code would complete loading the model and sending the Rowid?

Hope that makes sense

Cheers


Messages In This Thread
New to CI - by El Forum - 11-03-2009, 11:43 PM
New to CI - by El Forum - 11-04-2009, 12:23 AM
New to CI - by El Forum - 11-04-2009, 03:39 AM
New to CI - by El Forum - 11-04-2009, 09:01 AM
New to CI - by El Forum - 11-04-2009, 09:39 AM
New to CI - by El Forum - 11-04-2009, 09:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB