Welcome Guest, Not a member yet? Register   Sign In
passing id to link?
#2

[eluser]manilodisan[/eluser]
Code:
$data['query'] = $this->registrationmodel->delete_by_pkey($this->uri->segment(3));

I've put uri segment 3. You should put there whatever corresponds to the id of your item.

And the link:

Code:
<a href="&lt;?= site_url ( 'controller/method/' . $id ) ?&gt;">click</a>


Messages In This Thread
passing id to link? - by El Forum - 10-22-2008, 10:34 AM
passing id to link? - by El Forum - 10-22-2008, 10:46 AM
passing id to link? - by El Forum - 10-22-2008, 11:01 AM
passing id to link? - by El Forum - 10-22-2008, 05:32 PM
passing id to link? - by El Forum - 10-23-2008, 03:11 AM
passing id to link? - by El Forum - 10-23-2008, 07:44 AM
passing id to link? - by El Forum - 10-23-2008, 10:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB