Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Tiago_ftp

[Resolvido] erro no codigo

Recommended Posts

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"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta 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

Compartilhar este post


Link para o post
Compartilhar em outros sites

Tiago, o código postado é do arquivo gerenciarNoticias.php?Uma dica: substitua $HTTP_SESSION_VARS pelo array global $_SESSION, pois o primeiro logo passará a não existir mais ;)

Compartilhar este post


Link para o post
Compartilhar em outros sites

óla Anderson o codigo postado é do painel administrativo, onde é constituido por um menu e uma iframe, e o que eu ueria era qdo eu clica-se no menu ele fosse buscar o gerenciador de noticias e coloca-se ele no iframe.

 

 

e estranhei este erro pq antes de colocar o menu e a iframe., ele fazia a autenticação sem problemas

 

 

Eu fiz um teste comentei a parte de autenticação e a pagina funciona, coloco a autenticação e deixa de funcionar de novo http://forum.imasters.com.br/public/style_emoticons/default/upset.gif

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.