Uname : Linux V-ShopU01 4.18.0-348.20.1.el8_5.x86_64 #1 SMP Thu Mar 10 20:59:28 UTC 2022 x86_64
Server : Apache/2.4.37 (rocky) OpenSSL/1.1.1k
Whoami : apache
Safe Mode : OFF
DOCUMENT ROOT : /var/www/html/site_shopudiet
Disable Function :
Path : /var/www/html/site_shopudiet/admin/

Server IP : 65.20.74.164 Client IP : 3.148.145.2
Current File : /var/www/html/site_shopudiet/admin/dateInterval.php
<?php
include('connect.php');
session_start();
	$from = $_POST['from'];
	$to = $_POST['to'];
    $tom = date('Y-m-d', strtotime($to. ' + 1 days'));
	$data = "SELECT * FROM product_cart WHERE date BETWEEN $from AND $to";
	$query = mysqli_query($conn,$data);
	$result["tableData"] = '';
  /*  $sl = 1;
    $arr = array();
    $arr_b = array();
    $i = 0;
	while( $row = mysqli_fetch_array($query))
        {
            $from = $row['time_from'];
            $to = $row['time_to']; 
            if($to != '0000-00-00 00:00:00') $lout = date("M-j-y, h:i:s", strtotime($to)); else $lout = '';
               $result["tableData"].= "<tr><td>".$sl."</td><td>".$row['name']."</td><td>".date("M-j-y, h:i:s", strtotime($from))."</td><td>".$row['tot_break']."</td><td>".$lout."</td><td>". $row['tot_time_in']."</td></tr>"; 
               $time2 = $row['tot_time_in'];
               $break = $row['tot_break'];
                $arr[$i] = $row['tot_time_in'];
                $arr_b[$i] = $row['tot_break'];
                $i++; 
             $sl++;    
        }*/
                    
	echo json_encode($data);

?>