-1
it is possible I join two if’s almost in a row?
' <p>Trabalhador (4) Validade:';
if ($exibe['MedicaValidade4'] != '0000-00-00')
{
if (strtotime($exibe['MedicaValidade4']) < time())
{
echo '<span style="color:red">'.$exibe['MedicaValidade4'].'</span>';
echo '<a href="MostrarMedica4.php?id='. $exibe['id'].'"> Ver PDF</a>';
} else {
echo $exibe['MedicaValidade4'];
echo '<a href="MostrarMedica4.php?id='.$exibe['id'].'"> Ver PDF</a></p>';
}
}
<p><b>Projectista: </b></p>
<p>Projectista Numero: '.$exibe["ProjectistaNumero"].'</p>
<p>Projectista Validade:';
All this inside PHP
What I want to do is to see if the Medicavalidade date is set and check if the date is past today. If it passes, the numbers turn red. If it doesn’t go black. If no data is filled in it shows nothing
I’m having a hard time because of the clicks. I’ll change my question to see if you can help me
– ChrisAdler