I'm having a problem because of an invalid variable. It always tells me that the AlvaraAnexo
variable is invalid.
<?php
include("conectar.php");
$id = $_GET['id'];
$sql = mysql_query("Select* From tb_trabalhador WHERE id = $id");
function apresentarAlvara ($id, $AlvaraAnexo) {
$href = 'MostrarAlvara.php?id='.$id.'&documento='.$AlvaraAnexo;
$title = 'Clique para abrir documento';
$html = '
<p>
Visualizar documento Alvara: <a href="MostrarAlvara.php?id='.$exibe['id'].'">Ver PDF </a>
</p>';
return $html;
}