$sql11 = "select operation_catch , COUNT(DISTINCT crimeref_id) AS sum_case FROM tb_criminal1 where type_arrest='2' AND operation_catch='11' AND catch_date between '$start_date_chart' and '$end_date_chart' ";
ตรงนี้ต้องเขียนยังไงดีครับ( '$start_date_chart' and '$end_date_chart') รบกวนหน่อยครับ
select operation_catch , COUNT(DISTINCT crimeref_id) AS sum_case FROM tb_criminal1 where type_arrest='2' AND operation_catch='11' AND str_to_date(catch_date,'%d-%m-%Y') between str_to_date('01-08-2564','%d-%m-%Y') and str_to_date('01-08-2564','%d-%m-%Y')