Código PHP:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ITV | Sistema Administrador de Tutorias | Windows</title>
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" />
/*esta es la 6 antes 9*/<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
.style5 {
color: #003399;
font-weight: bold;
}
.style6 {
font-size: 14px;
font-weight: bold;
color: #003399;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_effectSlide(targetElement, duration, from, to, toggle)
{
Spry.Effect.DoSlide(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}
function MM_effectHighlight(targetElement, duration, startColor, endColor, restoreColor, toggle)
{
Spry.Effect.DoHighlight(targetElement, {duration: duration, from: startColor, to: endColor, restoreColor: restoreColor, toggle: toggle});
}
//-->
</script>
</head>
<body class="twoColFixLtHdr">
<div id="container">
<div id="header">
<h1>
<script type="text/javascript">
AC_FL_RunContent( 'codebase',,'width','803','height','150','hspace','0','vspace','0','align','top','tabindex','0','title','Instituto Tecnológico de Veracruz','src','img/header','quality','high','pluginspage',,'movie','img/header' ); //end AC code
</script>
<noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="803" height="150" hspace="0" vspace="0" align="top" tabindex="0" title="Instituto Tecnológico de Veracruz">
<param name="movie" value="img/header.swf" />
<param name="quality" value="high" />
<embed src="img/header.swf" width="803" height="150" hspace="0" vspace="0" align="top" quality="high" pluginspage= type="application/x-shockwave-flash"></embed>
</object>
</noscript>
<!-- end #header -->
</h1>
</div>
<div id="sidebar1">
<h3>Menu Principal <em></em></h3>
<ul>
<li><a href="maestrosp.php" onmouseover="window.status='';return true">Inicio - Maestros</a></li>
<br />
<li><a href="maestroscp.php" onmouseover="window.status='';return true">Cambiar Perfil</a></li>
<br />
<li><a href="maestrosrp.php" onmouseover="window.status='';return true">Responder Preguntas</a></li>
<br />
<li><a href="maestrosvp.php" onmouseover="window.status='';return true">Ver Preguntas</a></li>
<br />
<li><a href="maestrosva.php" onmouseover="window.status='';return true">Mis Alumnos</a></li>
<br />
<li><a href="index.php" onmouseover="window.status='';return true">Descontar</a></li>
</ul>
</div>
<div id="mainContent">
<h1 class="contentheading"><a name="top"></a>Sistema Administrador De Tutorias - Maestros - Mis Alumnos-</h1>
<p>
<?
$user = $_COOKIE["new_user"];
mysql_connect('localhost','root','hola')or die ('Ha fallado la conexion: '.mysql_error());
mysql_select_db('tutorias')or die ('Error al seleccionar la Base de Datos: '.mysql_error());
$result = mysql_query('SELECT * FROM alumnos WHERE tutor=\''.$user.'\'');
while ($row = mysql_fetch_array($result)){
$num = $row['ncontrol'];
$alu = $row['nombre'];
/*Error*/ setcookie("new_user2", $num);
print $_COOKIE["new_user2"];
echo '<form id="form1" name="form1" method="post" action=""><p align="left">';
echo '<p><span class="style3">Mi Foto: </span></p>';
echo '<p><span class="style3"><img src="cfotoa.php" alt="" name="" width="286" height="208" border="0" /></span></p>';
echo "Nombre: ".$alu;
}
?>
</p>
<p> </p>
<p class="contentheading"><a href="#top" onmouseover="window.status='';return true"><img src="img/top.png" title="Ir arriba" alt="Ir arriba" border="0"/> Ir arriba</a></p>
</div>
<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
<div id="footer">
<p align="center"><a href="index.html" class="sublevel" onmouseover="window.status='';return true">INICIO</a> <strong>|</strong> <a href="#" class="sublevel" onmouseover="window.status='';return true">Alumnos</a> <strong>|</strong> <a href="#" class="sublevel" onmouseover="window.status='';return true">Maestros</a><br />
<br />
Instituto Tecnológico de Veracruz - 2008</p>
<!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
ahi esta marcada la linea a la que se refiere de la cabecera,
jejejeje tube que poner todo el codigo