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

[eluser]zimco[/eluser]
I can't tell how you're creating the links but i did something similar in a view like:
Code:
echo ('<a href="'. site_url('controller/function/'.$results[$i]['your_id']) .'">' . $results[$i]['your_id']) . '</a>');

Then do the $thedeleteid = $this->uri->segment(3, 0); thing in your delete function to know which one it is you want to delete like mailodisian already mentioned above; his post beat mine.


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