-4
<div id="posiciona">
<table id="mostra_prod" cellpadding="1" cellspacing="3" bordercolor="#000000">
<thead>
<tr>
<td align="right" bgcolor="#0a0a96">Aplicação</td>
<td align="left" bgcolor="#0a0a96">Referência</td>
</tr>
</thead>
<tbody>
<?php
$i=0;
while ($row = mysqli_fetch_array($result_pd)) {
$rfprod = $row['pro_referencia_produto'];
$idref[] = $rfprod;
$i++;
$approd = $row['pro_aplicacao_produto'];
?><tr><?php
echo "<td align='right' style='color: #cfcfd1; font-size:14px;'>".$approd."</td>";
echo "<td style='color: #ffffff; font-size:11px; padding-top: 5px;'>".$rfprod."</td>";
?></tr><?php
}
?>
</tbody>
</table>
</div>
Your question is not very clear. Try to formulate the question better (https://answall.com/help/mcve)
– rLinhares
Dear Linhares, OK! When selecting the line in the Onclick event, I need to send by POST, the item reference code to the other program in PHP, which will show all the images of this item. Grateful...!
– Paulo Ladeira
But why via POST? Any particular reason? For GET it gets much simpler, see: echo "<td style='color: #ffffff; font-size:11px; padding-top: 5px;'><? php echo('<a href="PAGINA_DESTINO.php?ref='.$rfprod.'">'.$rfprod.'</a>');? ></td>
– user60252
Leo, the command syntax is not correct! ; ? ></td> At this point in the command you are showing special characters, two red dots before the end of php’s closure. At the end of the command I entered the ; A msg error - Parse error: syntax error, Unexpected 'catalog2' (T_STRING), expecting ',' or ';' in C: wamp64 www tutorials catalog000.php on line 121
– Paulo Ladeira
Leo, How will the GET command look in the catalog2.php program ?
– Paulo Ladeira
Solved Leo ! echo "<td align=right style='font-size:15px'> <a href=catalog02.php? referenced=$rfprod style='color: #cfcfd1; text-Decoration: None;'>$approd</a></td>"; echo "<td style='font-size:11px; padding-top: 5px;'> <a href=catalog02.php? referent=$rfprod style='color: #ffffff; text-Decoration: None;'>$rfprod</a></td>";
– Paulo Ladeira