Hi

Im using the blank sidebox mod. I want to put this PHP into my sidebox and in one of my divs but i cant! Anyone have any ideas?

Cheers

PHP Code:
<?php
    $header_cart 
"<div id='header_cart'>"
  if (
$_SESSION['cart']->count_contents() > 0) {
  
$header_cart .= '<ul>' "n";
    
$products $_SESSION['cart']->get_products();
    for (
$i=0$n=sizeof($products); $i<$n$i++) {
      
$header_cart .= '<li>';

      if ((
$_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
        
$header_cart .= '<span class="cartNewItem">';
      } else {
        
$header_cart .= '<span class="cartOldItem">';
      }

      
$header_cart .= $products[$i]['quantity'] . BOX_SHOPPING_CART_DIVIDER '</span><a class="font_green" href="' 

zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' $products[$i]['id']) . '">';

      if ((
$_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
        
$header_cart .= '<span class="cartNewItem">';
      } else {
        
$header_cart .= '<span class="cartOldItem">';
      }

      
$header_cart .= $products[$i]['name'] . '</span></a></li>' "n";

      if ((
$_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
        
$_SESSION['new_products_id_in_cart'] = '';
      }
    }
    
$header_cart .= '</ul>' "n";
  } else {
    
$header_cart .= '<div id="cartBoxEmpty">' BOX_SHOPPING_CART_EMPTY '</div>';
  }

  if (
$_SESSION['cart']->count_contents() > 0) {
    
$header_cart .= '<hr />';
    
$header_cart .= '<div class="cartBoxTotal">' $currencies->format($_SESSION['cart']->show_total()) . '</div>';
//    $header_cart .= '<br class="clearBoth" />';
  
}

$header_cart .= "</div>";
echo 
$header_cart;  ?>