| 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/public_html/crmapp/ |
Upload File : |
<?php
include('connection.php');
error_reporting(0);
session_start();
$sid=$_POST['sid'];
$sdate=$_POST['sdate'];
$replacement=$_POST['replacement'];
$reason=$_POST['reason'];
$date=date("Y-m-d");
$sqls="select * from service where sid='$sid'";
$result=mysqli_query($con,$sqls) or die(mysqli_error());
$row=mysqli_fetch_array($result);echo $row['sinterval'];
$sinterval=$row['sinterval'];
$intt="+".$sinterval;
$effectiveDate=date('d-m-Y',strtotime($intt,strtotime($sdate)));
$NewDate=date('Y-m-d',strtotime("-3 days",strtotime($effectiveDate)));
if(isset($_REQUEST['submit']))
{
$sql="insert into service_entry(sid,sdate,replacement,reason) values('$sid','$sdate','$replacement','$reason')";
$sql2="update service set nextdate='$NewDate' where sid='$sid'";
mysqli_query($con,$sql);
mysqli_query($con,$sql2);
header('location:service_list.php?log=insert');
echo '<META HTTP-EQUIV="Refresh" Content="0; URL=service_list.php?log=insert">';
}
?>