Why are my cart contents not showing on Justhost Server but showing on local server?
<p>I have a php shopping cart which uses cookies to remember the users items.</p>

<p>It works fine on my local wamp sever, I add or remove items and view them in my cart. However, when I upload the site to JustHost to see how it looks online, I can still add items to my cart and see the product page, but when I click on the cart to see what I have in the cart I can only see my navbar, my footer is broken too and drop-down menus in navbars don't work.</p>

<p>Here is the code for my cart page:</p>

<pre><code>&lt;?php
$page_title="Cart";
include '/includes/header.php';
include './config/config.php';

$action = isset($_GET['action']) ? $_GET['action'] : "";
$name = isset($_GET['name']) ? $_GET['name'] : "";

if($action=='removed'){
echo "&lt;div class='alert alert-info'&gt;";
    echo "&lt;strong&gt;{$name}&lt;/strong&gt; was removed from your cart!";
echo "&lt;/div&gt;";
}

$cookie = $_COOKIE['cart_items_cookie'];
$cookie = stripslashes($cookie);
$saved_cart_items = json_decode($cookie, true);

if(count($saved_cart_items)&gt;0){
// get the product ids
$ids = "";
foreach($saved_cart_items as $id=&gt;$name){
    $ids = $ids . $id . ",";
}

// remove the last comma
$ids = rtrim($ids, ',');

//start table
echo "&lt;table class='table table-hover table-responsive table-bordered'&gt;";

    // our table heading
    echo "&lt;tr&gt;";
        echo "&lt;th class='textAlignLeft'&gt;Product Name&lt;/th&gt;";
        echo "&lt;th&gt;Price (USD)&lt;/th&gt;";
        echo "&lt;th&gt;Action&lt;/th&gt;";
    echo "&lt;/tr&gt;";

    $query = "SELECT id, name, price FROM products WHERE id IN ({$ids})     ORDER BY name";
    $stmt = $con-&gt;prepare( $query );
    $stmt-&gt;execute();

    $total_price=0;
    while ($row = $stmt-&gt;fetch(PDO::FETCH_ASSOC)){
        extract($row);

        echo "&lt;tr&gt;";
            echo "&lt;td&gt;{$name}&lt;/td&gt;";
            echo "&lt;td&gt;&amp;#36;{$price}&lt;/td&gt;";
            echo "&lt;td&gt;";
                echo "&lt;a href='remove_from_cart.php?id={$id}&amp;name={$name}' class='btn btn-danger'&gt;";
                    echo "&lt;span class='glyphicon glyphicon-remove'&gt;&lt;/span&gt; Remove from cart";
                echo "&lt;/a&gt;";
            echo "&lt;/td&gt;";
        echo "&lt;/tr&gt;";

        $total_price+=$price;
    }

    echo "&lt;tr&gt;";
            echo "&lt;td&gt;&lt;b&gt;Total&lt;/b&gt;&lt;/td&gt;";
            echo "&lt;td&gt;&amp;#36;{$total_price}&lt;/td&gt;";
            echo "&lt;td&gt;";
                echo "&lt;a href='payment-page.php' class='btn btn-success'&gt;";
                    echo "&lt;span class='glyphicon glyphicon-shopping-cart'&gt;&lt;/span&gt; Checkout";
                echo "&lt;/a&gt;";
            echo "&lt;/td&gt;";
        echo "&lt;/tr&gt;";

echo "&lt;/table&gt;";
}

else{
echo "&lt;div class='alert alert-danger'&gt;";
    echo "&lt;strong&gt;No products found&lt;/strong&gt; in your cart!";
echo "&lt;/div&gt;";
}

include 'includes/footer.php';
?&gt;
</code></pre>

<p>Please can someone advise if there is something I have missed out of my cart page code (or if I should be adding something to another file..) that is preventing me from seeing anything when this page is viewed</p>

<p>Thanks for any help</p>