HOME


Mini Shell 1.0
DIR:/home/drsekaran/public_html/admin/pages/master/action/
Upload File :
Current File : /home/drsekaran/public_html/admin/pages/master/action/addnptl.php
<?php
ob_start();
session_start();
include("../../../config.php");
$dte=date('d/m/Y');
$dtdoc=date('Y-m-d');
$dteE=date('Y-m-d h:i:s');
$added_by=$_SESSION['user'];
$added_on=date('Y-m-d h:i:s');



$sqll1="insert into lastupdated(pagename,dtype,date,sts)";
$sqll1.=" values(";
$sqll1.="'NPTEL Courses',";
$sqll1.="'add',";
$sqll1.="'".$dte."',";
$sqll1.="'1')";
/* echo $sqll1; */ 
$UsQueryy1 =mysqli_query($conn,$sqll1);


$sql="insert into nptle(name,year,title,description,link,dorder,added_by,added_on)";
	$sql.=" values(";
		$sql.="'".$_POST['name']."',";
		$sql.="'".$_POST['year']."',";
	$sql.="'".$_POST['title']."',";
		$sql.="'".$_POST['description']."',";
	$sql.="'".$_POST['link']."',";
		$sql.="'".$_POST['dorder']."',";
	$sql.="'".$added_by."',";
	$sql.="'".$added_on."')";
//echo $sql; 
//die(); 
$UsQuery =mysqli_query($conn,$sql);

if($UsQuery){
	header('location:'.$home_path.'/pages/master/addnptl.php?msg=success&rcpt=');
}else{
	header('location:'.$home_path.'/pages/master/addnptl.php?msg=error');	
}

?>