Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.219.158.84
Current Path : /kop/admin/ |
| Current File : //kop/admin/notif.php |
<?php
$dbhost = "logisys.cluster-cv9maxyrxjgg.ap-south-1.rds.amazonaws.com";
$dbuser = "admin";
$dbpass = "T0g3th3r@all";
$db = "logisys3_nub";
$conn = new mysqli($dbhost, $dbuser, $dbpass,$db) or die("Connect failed: %s\n". $conn -> error);
// var_dump($conn);
$upload_type = $_POST['upload_type'];
$filename = $_POST['filename'];
$fromdate = $_POST['fromdate'];
$todate = $_POST['todate'];
$file_name = $_POST['file_name'];
$query="INSERT INTO upload_notify(
FTYPE, FTITLE, FFROMDATE, FTODATE, FPATH, FCREATE)
values ('{$upload_type}','{$filename}','{$fromdate}','{$todate}','{$file_name}',now())";
$notify = mysqli_query($conn,$query);
$count = mysqli_num_rows($dateResult);
if($count>0)
{
$i = 0;
while($row = mysqli_fetch_assoc($dateResult)){
$info[$i]['upload_type'] = $row['upload_type'];
$info[$i]['filename'] = $row['filename'];
$info[$i]['fromdate'] = $row['fromdate'];
$info[$i]['todate'] = $row['todate'];
$info[$i]['file_name'] = $row['file_name'];
$i++;
}
}
$app['data'] = $info;
echo json_encode($app);
?>
|