pagination - CodeIgniter adjusting url when passing parameters to controler -


ok have records database listed in view file, u can see wanna pass values controler via href update/grab function controler

    echo $this->pagination->create_links();     br().br();  foreach ($query->result() $q): ?>      <a href="update/grab/<?php echo $q->id;?>/<?php echo $q->info; ?>"><?php echo $q->info . br()?></a> <?php endforeach; ?> 

it works first page in pagination, when on other page when clicked on on record, instead passing parametars controler when clicked in keep adding url example http://localhost/z/records/users/update/grab/3/update/grab/1/update/grab/1/update/grab/1/trtr

so error when have in url, when on second page in pagination

http://localhost/z/records/users/2 

works when on first page

http://localhost/z/records 

is there way solve proble. works if how adjust routes??? need help, please me important

try changing link absolute url:

 <a href="/z/update/grab/<?php echo $q->id;?>/<?php echo $q->info; ?>"> 

or adding correct relative url base header of pages:

<base href="/z/" /> 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -