1
Well, I need every line tr
of my table be a link for when the person click redirects to the related page.
I tried to do it this way:
while($linha = mysql_fetch_array($query))
{
$timestamp = strtotime($linha['DAT_ULTIM_ATUAL']);
$data = date('d/m/Y H:i', $timestamp);
$titulo = $linha['TXT_TITUL_PUBLI'];
$cdPublic = $linha['COD_IDENT_PUBLI'];
echo "<a href='noticias.php?jr=$cdPublic'><tr>";
echo "<td>$linha[TXT_TITUL_PUBLI]</td>";
echo "<td>$linha[TXT_RESMO_PUBLI]</td>";
echo "<td>$data</td>";
echo "</tr></a>";
}
However this not giving link, how to do ?