| Server IP : 92.204.40.98 / Your IP : 216.73.216.201 Web Server : LiteSpeed System : Linux amster.dnsfors.com 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : tmksyste ( 2190) PHP Version : 8.3.31 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/tmksyste/domains/tmksystems.in/private_html/crmapp/ |
Upload File : |
<?php
include('connection.php');
error_reporting(0);
session_start();
$cid=$_POST['cid'];
$company=$_POST['company'];
$snotes=$_POST['snotes'];
$sdate=$_POST['sdate'];
$sinterval=$_POST['sinterval'];
$product=$_POST['product'];
if($sinterval==0)
{
$NewDate=$_POST['ddate'];
}
else
{
$intt="+".$sinterval;
$effectiveDate=date('d-m-Y',strtotime($intt,strtotime($sdate)));
$NewDate=date('Y-m-d',strtotime("-3 days",strtotime($effectiveDate)));
}
$date=date("Y-m-d");
if(isset($_REQUEST['submit']))
{
if(empty($cid))
{
$sql="insert into service(company,snotes,date,sinterval,nextdate,product) values('$company','$snotes','$sdate','$sinterval','$NewDate','$product')";
}
else
{
$sql="insert into service(cid,company,snotes,date,sinterval,nextdate,product) values('$cid','$company','$snotes','$sdate','$sinterval','$NewDate','$product')";
}
mysqli_query($con,$sql);
//echo $sql;
header('location:service_list.php?log=insert');
echo '<META HTTP-EQUIV="Refresh" Content="0; URL=service_list.php?log=insert">';
}
?>