OK, thanks for that Chris.
I did get it in the end, with something very similar to what you
suggested:
$message = "";
while ( )
{
$var1 = $row["1"];
... etc
$item = "$var1 $var2 $var3 etc";
$message = $message . $item . "\n";
}
Your solution is cleaner so
Michael Hall pressed the little lettered thingies in this order...
>
> I'm stuck on a piece of code for a shopping cart.
>
> I'm on the final page where the buyer clicks BUY and several things
> happen. I want to loop through the table that stores the session info and
> extract details such as
I'm stuck on a piece of code for a shopping cart.
I'm on the final page where the buyer clicks BUY and several things
happen. I want to loop through the table that stores the session info and
extract details such as item, price, quantity, subtotal and assign all
this info to one variable:
$var
3 matches
Mail list logo