1
I’m having trouble putting a table inside tabs. The data is all inside except the tables.
echo'<div id="tabs-1">
<p><b>Alvará: </b></p>';
echo '<table width=500>
<tr>
<td><b>Número</b></td>
<td><b>Validade</b></td>
<td><b>Anexo</b></td>
</tr>';
echo "<td>".$exibe['AlvaraNumero']."</td>";
if ($exibe['AlvaraValidade']) {
if (strtotime($exibe['AlvaraValidade']) < time()) {
echo "<tr>";
echo " <td>'<span style='color:red'>".$exibe['AlvaraValidade']."</span>'</td>";
}else{
echo " <td>".$exibe['AlvaraValidade']."</td>";
}
echo "<td><a href='MostrarAlvara.php?id=".$exibe['id']."'>Ver PDF </a></td>";
echo "</tr>";
}
echo '</table>';
'</p>
</div>';
Alisson, put two answers. You can remove one of them and explain your answer better. (And welcome to Stackoverflow!)
– Sergio
Just one question. How can I put a link to open in an echo? echo "<td>'<a href="Displayalvara.php? id=' . $displays['id'] . '">View PDF '</a></td>"
– ChrisAdler