Re: [PHP] variables / reading files

2001-06-23 Thread Christopher Ostmo
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 item,

Re: [PHP] variables / reading files

2001-06-23 Thread Michael Hall
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 I'll