arkadaşlar merhaba ufak bi script var host değişmeden önce gayet güzel çalışıyordu, sorunsuz bi şekilde taşımama rağmen, ufak bir problem var, kategori eklemeye çalıştığımda hata alıyorum kategori sayfası kodları aşağıdaki gibi sorun nerede çözemedim bu arada php versiyonları aynı hostların.

session_start();

	$availableTo = array("god", "support", "stock");

	require_once("../inc/conf.php");
	require_once("../inc/func.php");
	require_once("../inc/admin.php");

	$topNav = 'products';
	$subNav = 'categories-add';
	$iconType = 'add-new';
	$goBack = 'categories';


	if($_POST['action'] == 'submit') {

		$error = array();

		$categoryName = makeSafe($_POST['name']);
		$active = $_POST['active'] == "1" ? "1" : "0";
		$description = makeSafe($_POST['description']);

		if($categoryName == '') {
			$error['categoryName'] = 'Lütfen Kategori Adı giriniz';
		}

		if($description == '') {
			$error['description'] = 'Lütfen Kategori Detayı giriniz';
		}

		if(count($error) == 0) {

			$insert = mysql_query("INSERT INTO ".TBL_CATEGORIES." (name, description, active) VALUES (".
							"'".$categoryName."', ".
							"'".$description."', ".
							"'".$active."')");

			if($insert === true) {

				$success = true;

				$insertID = mysql_insert_id();
				$updateDepth = mysql_query("UPDATE " . TBL_CATEGORIES . " set depth = '".$insertID."' WHERE id = '".$insertID."' LIMIT 1");

				$update = mysql_query("OPTIMIZE TABLE " . TBL_CATEGORIES);

			} else {

				$error["record-problem"] = "Kayıt yapılırken bir hata oluştu! Lütfen daha sonra tekrar deneyiniz.";

			}

		} else {

			@unlink($tempPath);

		}

	}