O que significa: Parse error: syntax error, unexpected T_IF?

Parse error: syntax error, unexpected T_IF

Bom, estou criando uma página index para puxar o home, o DreamWeaver mostra o erro na linha 25:

if (file_exists($pag[$link]));

o código inteiro é:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona...

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Documento sin título</title>

</head>

<body>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td colspan="2"><?php include "cabecalho.php"; ?></td>

</tr>

<tr>

<td width="26%"><?php include "menu.php"; ?></td>

<td width="74%">

<?php

$link=$_GET["link"];

$pag[1] = "home.php";

$pag[2] = "lst_categoria.php";

if (!empty($link)); //se a variável link não estiver vazia

(

if (file_exists($pag[$link])); //verifica se o arquivo existe

)

include $pag[$link]; //inclui o arquivo

)

else

(

include "home.php";

)

)

else

(

include "home.php";

(

?>

</td>

</tr>

<tr>

<td colspan="2"><?php include "rodape.php"; ?></td>

</tr>

</table>

</body>

</html>

Comments

Sign In or Register to comment.