| Current Path : /home/bolconlineco/www/aaaaaa/admin/ |
| Current File : /home/bolconlineco/www/aaaaaa/admin/editcoursecode.php |
<?php
include('../includes/connection/func.inc.php');
if(isset($_POST['edit-course']))
{
$courseId=sql_strip($_POST['courseId']);
$categoryId=sql_strip($_POST['categoryId']);
$coursename=sql_strip($_POST['coursename']);
$coursecode=sql_strip($_POST['coursecode']);
$coursetopic=sql_strip($_POST['coursetopic']);
$courseorder=sql_strip($_POST['courseorder']);
$coursestatus=sql_strip($_POST['coursestatus']);
$sql="update course set courseName='$coursename',coursecode='$coursecode',coursetopic='$coursetopic',courseOrder='$courseorder',courseStatus='$coursestatus' where courseId='$courseId' and catId='$categoryId'";
mysql_query($sql) or die(mysql_error());
$msg="Update Successfully";
header("location:course.php?cat_id=$categoryId&msg=$msg");
}
?>