Your IP : 10.3.227.210


Current Path : /home/bolconlineco/public_html/admin/
Upload File :
Current File : /home/bolconlineco/public_html/admin/editcategorycode.php

<?php
include('../includes/connection/func.inc.php');  

   if(isset($_POST['edit-category']))
   
     {
		
	   $categoryname=sql_strip($_POST['categoryname']);
	   $categoryorder=sql_strip($_POST['categoryorder']);
	   $categorystatus=$_POST['categorystatus'];
	   $categoryid=sql_strip($_POST['categoryid']);
       $sql="update category set CategoryName='$categoryname',CategoryOrder='$categoryorder',CategoryStatus='$categorystatus' where CategoryId='$categoryid'";
	    mysql_query($sql) or die(mysql_error());
		$msg="Update Successfully";
		header('location: category.php?msg=Update Successfully');
		exit();
	 
	 }
  


?>