Can 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:';
This is all within PHP
What I want to do is see if the Medicaid date is pre-set and check if the date passes today. If you pass, the numbers are red. If the numbers are not black. If no data is entered it shows nothing