How to pass a data from a link and then print it in a controller in Codeigniter : <p>I want to pass a data from a link and then print it in a controller.
This is my View:</p>

<pre><code>&lt;a href="&lt;?php echo site_url("Main_controller/show_chronicles/".$row-&gt;chronicles_no); ?&gt;"&gt;Chronicles&lt;/a&gt;
</code></pre>

<p>and this is my controller function:</p>

<pre><code>function show_chronicles()
{
  echo $row-&gt;chronicles_no;
}
</code></pre>
