Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/12/2009, 20:37
kushanku
 
Fecha de Ingreso: noviembre-2008
Mensajes: 28
Antigüedad: 15 años, 5 meses
Puntos: 0
error que me aparece en mi pagina

hola a todos tengo un problema que no se como solucionarlo son unos errores que me aparecen en mi pagina...ya lei bastante sobre el problema pero no se como solucionarlo...todo lo que hasta ahora lei me indica que en mi codigo hay algun tag <? ?> que contiene espacios y que por eso envia esos errores pero ya verifique el codigo de punta a punta y el error igual continua, si me podrian ayudar desde ya muchas gracias a todos.

estos son los errores que envia en pantalla.

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/lesicos/public_html/index.php:9) in /home/lesicos/public_html/menu2.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/lesicos/public_html/index.php:9) in /home/lesicos/public_html/menu2.php on line 2

y este es mi codigo php no se que puede estar mal


<?php
session_start();
include('conector.php');
if(isset($_SESSION['carro']))
{
$carro = $_SESSION['carro'];
}else{
$carro = false;
}
$qry = sprintf("select * from producto");
$resul_qry = mysql_query($qry, $conexion) or die (mysql_error());
?>
<!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=utf-8"/>
<title>Menu del dia</title>
</head>
<body>
<div class="entry">
<table border="0" cellpadding="0" cellspacing="0" width="600" class="body" align="center">
<tr>
<td width="50%" class="titulo">Productos</td>
<td width="50%" align="right">[ <span class="titulo">Carrito</span> | <a href="vercarrito.php">Ver Carrito</a>]</td>
</tr>
<tr>
<td width="100%" colspan="2">
<hr size="1">
</td>
</tr>
<tr>
<td width="100%" colspan="2" class="titulo">Seleccione sus productos</td>
</tr>
</table>

<br>
<table border="1" align="center" width="600" bordercolor="#000000">
<form action="vercarrito.php" method="post">
<tr bgcolor="#FFBF00">
<td align="center" class="titulo Estilo1">Productos</td>
<td align="center" bgcolor="#FFBF00" class="titulo Estilo1">Precio</td>
<td>
<center><a href="vercarrito.php?<?php echo SID?>"title="Ver el contenido del carrito"><img src="images/cart.png" border="0"></a></center>
</td>
</tr>
<?php while($fila = mysql_fetch_assoc($resul_qry)){?>
<tr>
<td align="center" class="titulo"><?php echo $fila["producto"];?></td>
<td class="titulo" align="center"><?php echo $fila["precio"];?></td>
<td>
<?php if(!$carro || !isset($carro[md5($fila['id_producto'])]['identificador']) || $carro[md5($fila['id_producto'])]['identificador']!=md5($fila['id_producto'])){?>
<a href="agregar.php?<?php echo SID ?>&id=<?php echo $fila['id_producto'];?>"><center><img src="images/productonoagregado.gif" width="18" height="18" border="0" title="agregar al carrito"></center></a>
<?php }else{?>
<a href="borrar.php?<?php echo SID ?>&id=<?php echo $fila['id_producto'];?>"><center><img src="images/productoagregado.png" border="0" width="18" height="18" title="Quitar del carrito"></center></a>
<?php }?>
</td>
</tr>
<?php }?>
</form>
<center>Los pedidos solo se realizan hasta las 10:00 de la mañana gracias</center><br />
</table>
<?php mysql_free_result($resul_qry)?>
</div>
</body>
</html>