2
I have a Table in PHP and in each tr I need a link
<?php
$con = mysqli_connect("localhost","root","", "saber");
mysqli_set_charset($con,"utf8");
$result = mysqli_query($con,"select id,nome,vista from mensagens");
while($row = mysqli_fetch_array($result)){
echo "<tr>";
echo "<td>" . $row['id'] . "</td>";
echo "<td width = '86%'>" . $row['nome'] . "</td>";
if($row['vista'] == 1)
echo "<td>Sim</td>";
else
echo "<td>Não</td>";
echo "</tr>";
}
?>
Does anyone know how I do?
Hello Ricardo I cheated when I said it was all td, was all tr, ie when you click a Row goes to another link
– Bruno Gibellino
@Brunogibellino Editei, test ai.
– Ricardo
It didn’t work on tr but it worked on a td I tested. But I can’t get the link to work on tr
– Bruno Gibellino
of me more information will be placed only one link or will be placed one link in each Row (tr)?
– Ricardo
in each tr will have a link
– Bruno Gibellino
@Brunogibellino Editei.
– Ricardo