me tira el mismo error con las mismas lineas
Lo que no dije es que mi web lo tengo a través de includes, a ver si puede ser problema de ahi.
Lo que tengo es esto:
menu.php
<? include ("seguridad.php");?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
<SCRIPT LANGUAGE="javascript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=250,height=520');");
}
// End -->
</script>
</head>
<body>
<lu list-style:none;><li><a href="inicio.php">INICIO</a></li>
<hr color="#5a8cb8">
<li>[color=red]<a href="perfil.php?id=<? include ("id.php"); ?>">PERFIL</a>[/color]<br />
<hr color="#5a8cb8" />
</li>
<li><a href="fotos.php">FOTOS</a></li>
<hr color="#5a8cb8"><li><a href="videos.php">VIDEOS</a></li>
<hr color="#5a8cb8"><li><a href="montajes.php">MONTAJES</a></li>
<hr color="#5a8cb8"><li><a href="javascript:popUp('Paquirrin_in_Session_2011/index.php')">MÚSICA</a></li>
<hr color="#5a8cb8">
<li><a href="componentes.php">CORLEONE</a></li>
<hr color="#5a8cb8">
</lu>
</body>
</html>
y dentro del menu está la pagina principal
inicio.php
<? include ("seguridad.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<LINK REL="StyleSheet" HREF="css/web.css" TYPE="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
<style type="text/css">
<!--
body {
background-color: #5a8cb8;
}
.Estilo2 {font-size: x-small}
.Estilo4 {
color: #33CCFF;
font-weight: bold;
font-size: x-large;
}
-->
</style></head>
<body>
<div align="center">
<table width="800" height="600" border="0">
<tr>
<td height="100" colspan="2" valign="bottom" bordercolor="#3C658A" background="logo.jpg" bgcolor="#3C658A"><p align="right" class="Estilo2"><span class="Estilo3"><br />USUARIO: <? $username = $_SESSION["s_username"]; echo $username;?> <br /> <a href="salir.php"> </span><img src="cerrar_sesion.gif" border="0"/></a> </td>
</tr>
<tr>
<td width="125" height="600" bordercolor="#3C658A" bgcolor="#3C658A" align="center" valign="top">
<? include('menu.php');?> </td>
<td width="663" bordercolor="#3C658A" bgcolor="#FFFFFF" valign="top"><blockquote>
<p align="left"><font size="+3" color="#0099FF">Hola
<? $username = $_SESSION["s_username"]; echo $username;?>
! </font> </p>
<div align="right"><a href="hacernoticia.php">Publicar noticia</a> </div>
<table width="600" border="0">
<tr>
<td><? include('noticias.php'); ?>
</td>
</tr>
</table>
<p align="center" class="Estilo4"></p>
</blockquote> </td>
</tr>
<tr>
<td colspan="2" bgcolor="#CCCCCC"><? include('derechosdeautor.php');?></td>
</tr>
</table>
</div>
</body>
</html>
No lehe llamado index porque tengo un loggin llamado index.php
Lo que yo quiero es que cuando se loggea, accede a la bd y localiza si esta registrado..ok lo que qiero es que cuando inicie sesion es el sistema mire que si el usuario es "fulanito" le corresponde una ID, esa ID quiero sacarla