简体   繁体   English

这是我的代码,我想添加日期选择器事件,根据日期给出特定的记录

[英]this is my code in this i want to add date-picker event which gives particular record according to date

i don't know how to add question here? 我不知道如何在这里添加问题? please also help me in this.. 请帮助我...

$sql = ("SELECT final_report.customer_id,customer.Customer_name,customer.Customer_email,customer.Customer_address,customer.Customer_phone_num,final_report.Product_id,final_report.total_units,final_report.total_price,final_report.Date
FROM final_report 
INNER JOIN customer
ON customer.Customer_id = final_report.customer_id LIMIT $start_from, $per_page")or die(mysql_error());

use BETWEEN like that :- 像这样使用BETWEEN : -

where final_report.Date BETWEEN 'date1' and 'date2'

or try this :- 或试试这个: -

where final_report.Date='date'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM