Where to put; in this code [closed]

-2
        <p><b>Alvará: </b></p>
     <p>Numero: &nbsp;&nbsp;&nbsp;&nbsp;        Validade:   &nbsp;&nbsp;&nbsp;&nbsp;        Anexo:</p>';
    Echo' <p>'.$exibe["AlvaraNumero"].' 
        &nbsp;&nbsp;&nbsp;&nbsp;  ' 
        if ($exibe['AlvaraValidade']) { 
                                        if   (strtotime($exibe['AlvaraValidade']) < time()) 
                                        {
            echo '<span style="color:red">'.$exibe['AlvaraValidade'].'</span>';
            } else {
            echo $exibe['AlvaraValidade'];
            }
            } else { 
            echo 'N/D';
            }
            '&nbsp;&nbsp;&nbsp;&nbsp;  ' 
            echo '<a href="MostrarAlvara.php?id=' . $exibe['id'] . '">Ver PDF </a></p>

I'm having an error Parse error: syntax error, unexpected 'if' (T_IF), expecting ',' or ';' in In this piece of code:

     Echo' <p>'.$exibe["AlvaraNumero"].' 
        &nbsp;&nbsp;&nbsp;&nbsp;  ' 
        if ($exibe['AlvaraValidade']) { 
    
asked by anonymous 18.06.2014 / 16:04

2 answers

5

Dude, I advise you to instead put that lot of "& nbsp" to make the spacing between the words, use css in a span to define this spacing Ex:

css:

span{
 margin-left: 50px;
}

display code:

Numero <span> Validade </span> <span> Anexo </span>

Of course, this is just to exemplify. This is good visually and in the future you will get lost less, and you will have everything more organized taking this as usual.

    
18.06.2014 / 16:38
2

Here ...

'&nbsp;&nbsp;&nbsp;&nbsp;  '

do

echo '&nbsp;&nbsp;&nbsp;&nbsp;  ';
    
18.06.2014 / 16:23