[eluser]tonanbarbarian[/eluser]
this depends on how you get the data
if you use
Code:
$this->uri->segment(n);
Then something like this
Code:
<?=anchor('index.php?/display_add/details/'.$city, '<img src="images/find.gif" border="0" alt="">');?>
If like me you prefere to make an array of segments using
Code:
$this->uri->uri_to_assoc(n);
then you would use something like
Code:
<?=anchor('index.php?/display_add/details/city/'.$city, '<img src="images/find.gif" border="0" alt="">');?>
then
Code:
$segments = $this->uri->uri_to_assoc(3);
would produce
Code:
$segments[array]
(
'city'=>xyz,
)
I prefer this because the segments can then be added in any order of matching pairs and the url still works