php error (not work online)
<p>I write a shopping cart site and i can run this site in my wamp localhost well. I host this site in eu5.org. When i run the site,my category.php is not load well (nothing is load). The code of my category.php file is bellow. I don't find the error. Please help me.</p>

<pre><code>&lt;?php
session_start();
$action = (isset($_GET['action']) &amp;&amp; $_GET['action'] != '') ? $_GET['action'] : '';
$catid = (isset($_GET['catid']) &amp;&amp; $_GET['catid'] != '') ? $_GET['catid'] : ''; 

include('../include/functions.php');
check_user();
include('theme/header.php');
include('theme/admin_menu.php');

?&gt;
&lt;div id="content"&gt;
&lt;?php
switch($action){
    case 'add': 
    view_add_category();
    break;
    case 'edit':
    view_edit_category($catid);
    break;
    case 'delete':
    delete_category($catid);
    break;  
    default:
    show_category();
    }
?&gt;  
&lt;div id="add_menu"&gt;
    &lt;?php
        echo "&lt;a href='product.php?action=add'&gt;&lt;input type='submit' value='Add New Product'/&gt;&lt;/a&gt;";     
        echo "&lt;a href='category.php?action=add'&gt;&lt;input type='submit' value='Add New Category' /&gt;&lt;/a&gt;";
    ?&gt;
&lt;/div&gt;
&lt;div id="products"&gt;

Choose the category to see the products.
&lt;/div&gt;
&lt;/div&gt;

&lt;?php
    function show_category()
    {
        include('..\configdb.php');
        $sql="SELECT * FROM categorys WHERE parent_id = 0";
        $result=mysqli_query($mysqli,$sql) or die(mysqli_error());

        echo "&lt;div id='cat_list'&gt;";
        echo "&lt;table border='0' width='250'&gt;";
        echo "&lt;tr height='35' bgcolor='green' style='color:#EEEEEE'&gt;&lt;div&gt;&lt;font color='black'&gt;
                &lt;td width='180' align='center'&gt;Categories&lt;/td&gt;&lt;/tr&gt;";


        while($row=mysqli_fetch_array($result)){
                $cat_id=$row['cat_id'];
                $cat_name=$row['cat_name'];

                $bg=($bg=='#eeeeee' ? '#ffffff':'#eeeeee');
                echo "&lt;tr bgcolor=".$bg." &gt;&lt;td width='100'&gt;&lt;b&gt;".$cat_name."&lt;/b&gt;&lt;/td&gt;&lt;td width='30'&gt;&lt;a href='category.php?action=edit&amp;catid=$cat_id'&gt;Edit&lt;/a&gt;&lt;/td&gt;&lt;td width='30'&gt;&lt;a href=\"javascript:confirm_delete('Are you sure you want to delete?','category.php?action=delete&amp;catid=".$cat_id."');\"&gt;Delete&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;";

            $sql2="SELECT * FROM categorys WHERE parent_id=$cat_id AND cat_id&lt;&gt;0";
            $result2=mysqli_query($mysqli,$sql2) or die(mysqli_error());
            while($row=mysqli_fetch_array($result2)){
                $cat_id=$row['cat_id'];
                $cat_name=$row['cat_name'];

                $bg=($bg=='#eeeeee' ? '#ffffff':'#eeeeee');
                echo "&lt;tr bgcolor=".$bg." &gt;&lt;td width='100'&gt;&lt;a href='javascript:showproducts($cat_id)'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;".$cat_name."&lt;/a&gt;&lt;/td&gt;&lt;td width='30'&gt;&lt;a href='category.php?action=edit&amp;catid=$cat_id'&gt;Edit&lt;/a&gt;&lt;/td&gt;&lt;td width='30'&gt;&lt;a href=\"javascript:confirm_delete('Are you sure you want to delete?','category.php?action=delete&amp;catid=".$cat_id."');\"&gt;Delete&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;";
            }
        } #while($row=mysqli_fetch_array($result)){
        echo "&lt;/table&gt;";
        echo "&lt;/div&gt;";
    }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function delete_category($catid)
{
        include('../configdb.php');
        $sql_del="DELETE  FROM categorys WHERE cat_id= '$catid' ";
        $result_del=mysqli_query($mysqli, $sql_del) or die(mysqli_error());
        if($result_del) echo "&lt;meta http-equiv=\"refresh\" content=\"0;URL=category.php\"&gt;";
}   
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function view_edit_category($catid)
    {
        include('../configdb.php');
        $sql="SELECT * FROM categorys WHERE cat_id='$catid'";
        $result=mysqli_query($mysqli,$sql) or die(mysqli_error());
        $row=mysqli_fetch_array($result);
        $parentid=$row['parent_id'];
        $catname=$row['cat_name'];
        if(file_exists("../cat_images/".$row['cat_pic']) &amp;&amp; !is_dir("../cat_images/".$row['cat_pic'])) {
            $cat_pic = "../cat_images/".$row['cat_pic'];
        } else {
            $cat_pic = "../cat_images/no.jpg";
        }

?&gt;      
    &lt;script src="../js/jquery.js"&gt;&lt;/script&gt;
    &lt;script&gt;
    $(document).ready(function() {
    $("#change-pic").click(function () {
        $('input[type=file]').toggle();
        if($(this).html() == "Change Picture") {

        $(this).html("Cancel");
        $('img').hide();
        $('input[type=file]').focus();
        $('#changed-pic').val('1');

        } else {

        $(this).html("Change Picture");
        $('input[type=file]').val('');
        $('img').show();
        $('#changed-pic').val('0');
        }
    });
    });
        &lt;/script&gt;
    &lt;form class="cat_edit_form" id="cat_edit_form" method="post" action="&lt;?php edit_category(); ?&gt;"  enctype="multipart/form-data"&gt;
    &lt;fieldset&gt;
        &lt;div&gt;
            &lt;label&gt;Parent:&lt;/label&gt;
             &lt;?php
                include('../configdb.php');         
                $sql="SELECT cat_id,cat_name FROM categorys WHERE parent_id=0";
                $result=mysqli_query($mysqli,$sql) or die(mysqli_error());
                echo "&lt;select name='parent_name' id='parent_name' length='15'&gt;";

                echo "&lt;option  value='0'&gt;Root&lt;/option&gt;";
                while($row=mysqli_fetch_array($result)){

                    $cat_id=$row['cat_id'];
                    $cat_name=$row['cat_name'];
                    if($cat_id==$parentid)
                    {
                        echo "&lt;option selected='selected' value=".$cat_id."&gt;".$cat_name."&lt;/option&gt;";
                    }
                    else
                    {
                        echo "&lt;option value=".$cat_id." &gt;".$cat_name."&lt;/option&gt;";
                    }
                }
                echo "&lt;/select&gt;";
            ?&gt;
        &lt;/div&gt;
        &lt;div&gt;
            &lt;label&gt;Category Name:&lt;/label&gt;
            &lt;input type="text" class="field" id="cat_name" name="cat_name"  value="&lt;?php echo $catname; ?&gt;"/&gt;
        &lt;/div&gt;
        &lt;div&gt;
            &lt;label&gt;Picture:&lt;/label&gt;
            &lt;img src="&lt;?php echo $cat_pic; ?&gt;" width='120' height='144' /&gt;
            &lt;input type="file" name="cat_pic" style="display: none" /&gt;
            &lt;br /&gt;
            &lt;span style="display: none"&gt;Choose Picture (or) &lt;/span&gt;
            &lt;a href="#" id="change-pic"&gt;Change Picture&lt;/a&gt;
            &lt;br /&gt;&lt;br /&gt;
        &lt;/div&gt;
        &lt;div&gt;
        &lt;input type="hidden" name="cat_id" value="&lt;?php echo $catid; ?&gt;"&gt;
        &lt;/div&gt;
        &lt;div&gt;
        &lt;input id='changed-pic' type='hidden' name='changed_pic' value='0' /&gt;
        &lt;/div&gt;        
        &lt;div&gt;
            &lt;input type="submit" value="Edit" name="editcat" /&gt;
        &lt;/div&gt;
    &lt;/fieldset&gt;
&lt;/form&gt;

&lt;?php
    }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function edit_category()
{
    if(isset($_POST['editcat']))
    {
        $cat_id=$_POST['cat_id'];
        $parent_name=addslashes($_POST['parent_name']);
        $cat_name=addslashes($_POST['cat_name']);
        $changed_pic = $_POST['changed_pic'];

        if($changed_pic) {  
            $cat_pic = $_FILES['cat_pic']['name'];

            move_uploaded_file($_FILES['cat_pic']['tmp_name'], "../cat_images/" . $_FILES['cat_pic']['name']);
            include('../configdb.php');     
            $sql="UPDATE categorys SET cat_name='$cat_name', parent_id='$parent_name', cat_pic='$cat_pic' WHERE cat_id='$cat_id'";
            $result=mysqli_query($mysqli,$sql) or die(mysqli_error());              
        }else{
            include('../configdb.php');     
            $sql="UPDATE categorys SET cat_name='$cat_name', parent_id='$parent_name' WHERE cat_id='$cat_id'";
            $result=mysqli_query($mysqli,$sql) or die(mysqli_error());
        }
        if($result){

            header("location: category.php");   
        }
    }
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function view_add_category()
{


?&gt;
&lt;form class="cat_form" id="cat_form" method="post" enctype="multipart/form-data" action="&lt;?php add_category(); ?&gt;" &gt;
    &lt;fieldset&gt;
        &lt;div&gt;
            &lt;label&gt;Parent:&lt;/label&gt;
             &lt;?php
                include('../configdb.php');         
                $sql="SELECT cat_id,cat_name FROM categorys WHERE parent_id=0";
                $result=mysqli_query($mysqli,$sql) or die(mysqli_error());
                echo "&lt;select name='parent_name' id='parent_name' length='15'&gt;";
                echo "&lt;option  value='0'&gt;Root&lt;/option&gt;";
                while($row=mysqli_fetch_array($result)){

                    $cat_id=$row['cat_id'];
                    $cat_name=$row['cat_name'];
                    echo "&lt;option value=".$cat_id." &gt;".$cat_name."&lt;/option&gt;";
                }
                echo "&lt;/select&gt;";
            ?&gt;
        &lt;/div&gt;
        &lt;div&gt;
            &lt;label&gt;Category Name:&lt;/label&gt;
            &lt;input type="text" class="field" id="cat_name" name="cat_name" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
            &lt;label&gt;Picture:&lt;/label&gt;
            &lt;input type="file" class="field" id="cat_image" name="cat_image" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
            &lt;input type="submit" value="Add" name="addcat" /&gt;
        &lt;/div&gt;
    &lt;/fieldset&gt;
&lt;/form&gt;

&lt;?php       
}   
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function add_category()
{
    if(isset($_POST['addcat']))
    {
        $parent_name=addslashes($_POST['parent_name']);
        $cat_name=addslashes($_POST['cat_name']);
        $cat_image = $_FILES['cat_image']['name'];

        move_uploaded_file($_FILES['cat_image']['tmp_name'], "../cat_images/" . $_FILES['cat_image']['name']);

        include('../configdb.php');
        $sql_insert="INSERT INTO categorys(cat_name, parent_id, cat_pic) VALUES ('$cat_name', '$parent_name', '$cat_image')";
        $result_insert=mysqli_query($mysqli,$sql_insert) or die(mysqli_error());
        if($result_insert){

            header("location: category.php");
        }
    }
}
?&gt;
</code></pre>
