1
I have a list of users that is formed from a query in the database. And the names are tag <a>
, which consequently when clicked will open a submenu, but I want to pass the data of the users typed into this sub menu. I’m using the Codeigniter.
<?php foreach($usuarios as $usuario): ?>
<tr>
<th scope="row">
<a title="Editar" href="<?php echo base_url() . 'menu/usuario/' . $usuario->id . $usuario->nome; ?>"><?php echo $usuario->nome; ?></a>
</th>
<td>
<span><?php echo $usuario->nome; ?></span>
</td>
<th>
<span><?php echo $usuario->id; ?></span>
</th>
</tr>
<?php endforeach ?>