Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/03/2004, 10:14
MrDjPuntoCl
 
Fecha de Ingreso: marzo-2004
Ubicación: Santiago
Mensajes: 14
Antigüedad: 20 años, 1 mes
Puntos: 0
hola grax por responder .... quede asi :| sorprendido por la rapides que respondieron :) pero bueno ... salio otro problema resulta que me arroja error el cual es el siguiente

Parse error: parse error, unexpected $ in c:\archivos de programa\easyphp\www\imprimir_catalogo.php

puse ese codigo que me indicastes en esta parte

<?php
session_start();
session_register('itemsEnCesta');
$item=$_POST['item'];
$cantidad=$_POST['cantidad'];
$itemsEnCesta=$_SESSION['itemsEnCesta'];

if ($item){
if (!isset($itemsEnCesta)){
$itemsEnCesta[$item]=$cantidad;
}else{
foreach($itemsEnCesta as $k => $v){
if ($item==$k){
$itemsEnCesta[$k]+=$cantidad;
$encontrado=1;
}
}
if (!$encontrado) $itemsEnCesta[$item]=$cantidad;
}
}
$_SESSION['itemsEnCesta']=$itemsEnCesta;
?><html>
<body>
<title>Catalogo de Impresión</title>
<div align="right"><a href="imprimir_catalogo.php">Actualizar Página</a>
<table border="0" align="center">
<tr>
<td> <tt>
<?
if (isset($itemsEnCesta)){
echo'<center><h2>Catalogo de Impresión :</h2></center><br>';

//aqui puse el codigo y reemplaze el otro

$i=1;
foreach($itemsEnCesta as $k => $v){
{
echo $k;
if($i==5)
{
echo "<br>";
$i=0;
}
$i++;
}



}
?>
</tt><tt> </tt> </td>
</tr>
</table>
</div>
</body>
</html>


pero como ya habia dicho antes me arroja dicho error ?? a que se debera :( bueno grax ota e ;)