ciao, ho provato a sistemarla cosi, ma non inserisce niente
Codice PHP:
$i=1;
$Totale=0;
while ($i<=$indiceprodotto)
{ $array = explode("|",$_COOKIE["acquisto"][$i]); ?>
<tr>
<td width="237"><? echo $array[0]; ?></td>
<td width="159"><? echo $array[3] ?></td>
<td width="199">
<p align="right"><? echo $array[1]." €" ?></p>
</td>
</tr>
<?
$sqlNoleggi="INSERT INTO Noleggi (IdCliente,IdProdotto,DataAffitto) VALUES ('$IdCliente',$array[5]','$DataAffitto')";
$Totale=$Totale+$array[4];
$i++;
}
?>
Qualche suggerimento?