I have a question, I am using codeigniter and I want to do the following, in the model I make a query which I charge in array in the index of my controller, which later I show it in a table through a foreach in the view .. my question is .. one of the things I get from the query is the code which I want it to be as link to another view, and use it as a parameter for another consult, could you help me please I'm a novice in this
<?php
foreach($array as $fila)
{
?>
<tr>
<td><a href=""><?=$fila->codigo?></a></td>
<td><?=$fila->nombre?></td>
<td><?=$fila->fecha?></td>
<td>
</tr>
<?php
}
?>
well in the model I have a simple query with select , and in the index of the controller, comment that I loaded the result of that query in a array that I then send to view and show it more or less as the code that you attach, and in the row of code I put a label to href and that code can send it to another to another view