You currently have no items in your shopping cart."; else { echo ""; $i = 1; foreach($_SESSION[cart_id] as $thisitem) { if(($i % 2) == 0) { $bgcolor = $contrasting_bgcolor_1; $letter = "a"; } else { $bgcolor = $contrasting_bgcolor_2; $letter = "b"; } $thisresult = mysql_query("SELECT * FROM tracks WHERE id = $thisitem"); echo ""; $i++; } if(($i % 2) == 0) $bgcolor = $contrasting_bgcolor_1; else $bgcolor = $contrasting_bgcolor_2; echo ""; echo "
TitleArtistPrice
".mysql_result($thisresult, 0, title)."".mysql_result($thisresult, 0, artist)."".number_format($mp3price, 2, ".", ",")."\"listen  \"remove
TOTAL:".number_format($totalprice, 2, ".", ",")."
"; echo "


"; echo "
"; } ?>