not getting this header to work correctly
<p>I am still working on this and I been trying to add in different things but its not working. When i go to the web site the side is all messed up and I don't know why.Here is my code:</p>

<pre><code>   &lt;?php
// Get all the categories and
// link them to category.php.

// Define and execute the query:
$q = 'SELECT category_id, category FROM categories ORDER BY category';
$r = mysqli_query($dbc, $q);

// Fetch the results:
while (list($fcid, $fcat) = mysqli_fetch_array($r, MYSQLI_NUM)) {

    // Print as a list item.
    echo "&lt;li&gt;&lt;a href=\"category.php?cid=$fcid\"&gt;$fcat&lt;/a&gt;&lt;/li&gt;\n";

    if($_SERVER['PHP_SELF']!="CART FILE"){
                echo "&lt;h1&gt;Cart Contents&lt;/h1&gt;";
                echo "&lt;div class=\"p2\"&gt;";
                $itemCount = count($_SESSION['cart']);
                foreach($_SESSION['cart'] as X=&gt;X){

                    for($i=0;$i&lt;count(X);$i++){
                        $itemCount+=X;
                      }

                }
                echo "&lt;a href=\"cart.php\"&gt;You have ".$itemCount." total items in your cart.&lt;/a&gt;";
                echo "&lt;/div&gt;\n";
        }

} // End of while loop.
</code></pre>

<p>When I change the x=>x to $k=>$v nothing happens. I don't understand this at all the count comes up but the sides is all out of whack. Here is the website <a href="http://www.elinkswap.com/snorris/header.html" rel="nofollow">http://www.elinkswap.com/snorris/header.html</a> I am sure it is something small but I am still a newbie at this.</p>

<p>ok I am editing this maybe for you guys to understand what i am trying to do here it is:
add in how many items are in the cart on the right side that is what this code is suppose to do..</p>
