我正在尝试使用下拉列表过滤结果并将其显示在表格中。从理论上讲,我的查询应该获取所有请求的数据,但我得到零结果。也许我看这个太久了。我做错了什么。
SELECT ac.route, ac.page_number, ac.link_number, ac.address, di.type,
pa.file_code, pb.member_id
FROM digital di, ips_trans ip, members pa,
files ac, publication pb
WHERE Date_Format(di.date,'%Y-%m-%d') = Date_Format(ip.roll_date,'%Y-%m-%d')
AND Date_Format(di.date,'%Y-%m-%d') = Date_Format(pa.date,'%Y-%m-%d')
AND di.payment = pa.paymentnow
AND ac.page_number = ip.code_number
AND ac.phone_number = pb.cell_number