-3
Parse error: syntax error, Unexpected 'if' (T_IF), expecting ',' or ';' in
I have that error in the second line of this code:
echo '<div id="tabs-2">
<p>Ficha de Aptidão Médica Validade: if ($exibe['MedicaValidade']) {
if (strtotime($exibe['MedicaValidade']) < time()) {
echo '<span style="color:red">'.$exibe['MedicaValidade'].'</span>';
} else {
echo $exibe['MedicaValidade'];
}
} else {
echo 'N/D';}</p>
Wow... 6 down-votes just because the guy doesn’t know PHP. It’s hard to learn something new these days! =\
– Miguel Angelo
pqp. That’s dirty. Dude, just a hint, type echo first ' '; and in there you put HTML. This way you won’t get confused.
– HiHello