[Resolvido] erro no codigo
Ola Pessoal, estou a criar um painel administrativo que contem um iframe:
<? session_start(); if($HTTP_SESSION_VARS['usuarioAutenticado']==""){ header("location: index.php?msg=2"); break; }else { include "conexao.php"; include "conf_login.php";?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "[http://www.w3.org/TR/html4/strict.dtd">](http://www.w3.org/TR/html4/strict.dtd) <html xmlns="[http://www.w3.org/1999/xhtml">http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Sistema Administrativo</title><style type="text/css"><!--.style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #333333;}.style2 {color: #333333}--></style></head><style type="text/css"> iframe { overflow-x: hidden; overflow-y: scroll; } </style> <body><table width="100%" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="100" colspan="4"> </td> <td width="6%"></td> </tr> <tr class="tira_menu_superior"> <td width="38%" height="23" class="texto_pequeno_negrito"> Olá <? echo $HTTP_SESSION_VARS['nomeAutenticado']; ?>! </td> <td width="6%" class="style1"><a href="noticia2/gerenciarNoticias.php" target="corpo" class="style2">Notícias</a> <td width="6%" align="center" class="style1"><a href="noticia2/gerenciarNoticias.php" target="corpo" class="style2">Notícias</a> <td width="15%" class="style1"><a href="noticia2/noticia.php" target="corpo" class="style2">Fotos</a> <td width="35%" class="texto_pequeno_negrito"><div align="center"><a href="Logout" class="style1" onClick="location.href = 'conf_login.php?action=logout'; return false;">Logout</a></div></td> </tr> <tr> <td colspan="2"> </td> </tr></table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="170" valign="top"><br /> </td> <td width="580" valign="top"> <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0"> <tr> <td width="103%" valign="top" class="area_conteudo"><div class="titulo_sessao"> <iframe name="corpo" width="103%" height="500px" src="" frameborder="0" scrolling="yes" > </iframe> </div></td> </tr> </table> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="21" class="tira_rodape"> <div align="center" class="texto_rodape"><strong>Painel de Administração </strong></div> </td> </tr> </table> </td> </tr></table></body></html><? } ?>
Quando eu clico em noticias da-me o seguinte erro: Parse error: syntax error, unexpected '=' in C:\AppServ\www\TESTE\Admin\noticia2\gerenciarNoticias.php on line 6.
Já tentei corrigir mas nao estou a consegui :unsure:
Eu sou novato, estou a aprender, a programar
Discussão (4)
Carregando comentários...