Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/12/2013, 11:00
chouki
 
Fecha de Ingreso: enero-2008
Mensajes: 88
Antigüedad: 16 años, 3 meses
Puntos: 0
syntax error, unexpected T_LNUMBER, expecting ',' or ';'

hola muy buenas a tod@s
haber si me podéis hechar la mano por un error que no sé cómo resolverlo.
Código PHP:
foreach($c as $k => $v)
          {

                 $subto=$v['cantidad']*$v['price'];
                 $suma=$suma+$subto;
                 $contador++;
                 echo "<td> align = left>";
                 echo "<td> ".$v['title']."</td>";
                 echo "<td> ".$v['price']."</td>";
                // justamente en la linea de abajo me sale el siguiente error.
                //syntax error, unexpected T_LNUMBER, expecting ',' or ';' 
                echo "<td> width="43" align=\"center\"".$v['cantidad']."</td>";
                 ?>
                 <td width="136" align="center">
                 <input name="cantidad" type="hidden" type="text" id="cantidad" value="<?php echo $v['cantidad'?>" size="8">
                 <td align="center"><a href="borracar.php?id=".$v['id'].""><img src="carro.jpg" width="12" height="14" border="0"></a></td >
                 </tr></form>
         <?php}?>
agradeciendo de antemano sobre vuestra ayuda
un saludo a tod@s
Muchisima gracias a todos