0
Question: My url does not receive the parameter id
in the mostra?id=.
Code:
<table class="table table-striped table-bordered table-hover">
<?php foreach($produtos as $p): ?>
<tr>
<td><?= $p->nome ?></td>
<td><?= $p->valor ?></td>
<td><?= $p->descricao ?></td>
<td><?= $p->quantidade ?></td>
<td><a href="https://localhost/estoque/public/produtos/mostra?id=<?php
$p->id ?>"><span class="glyphicon glyphicon-search"></span></a></td>
</tr>
<?php endforeach ?>
Try to change
<?php $p->id ?>
for<?= $p->id ?>
– Thiago Magalhães
Our solved the problem, thanks anyway!
– Aly98