Parse error

I am getting this parse error after years of working fine. I assume it has something to do with PHP upgrade.

Parse error: syntax error, unexpected ‘;’ in /home/level15/public_html/righter3.php on line 2

Here’s the code:

<? if ($_SERVER['PHP_SELF']=="/bio.php") { echo ?>
                    <div class="big cetner">Press Releases</div>
                    <div class="break10">
                            <a class="right" href="pdfs/article-screen-2007.pdf">Screen (2007)</a>
                    </div>
                    <div class="break5">
                            <a class="right" href="pdfs/article-screen-2003.pdf">Screen (2003)</a>
                    </div>
                    <div class="break5">
                            <a class="right" href="pdfs/article-screen-1998.pdf">Screen (1998)</a>
                    </div>
                    <div class="break5">
                            <a class="right" href="pdfs/article-screen-1996.pdf">Screen (1996)</a>
                    </div>
                    <div class="break5">
                            <a class="right" href="pdfs/article-screen-1994.pdf">Screen (1994)</a>
                    </div>
<? ; } else { echo ?>

hey gooseswan,
the echo is not needed. Try removing the echo and " ; " at the end. It should work then

Thanks! You were right on the money.

Sponsor our Newsletter | Privacy Policy | Terms of Service