พอ รันแล้วก็ Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in D:\AppServ\www\fitness\admin\show_report.php on line 106 แบบนี้เลยครับ
select p.*, d.*, a.* from payment as p left join tb_order as d on p.order_id = d.order_id left join admin as a on d.admin_id = a.admin_id where (เดาเอาว่ามันอยู่ tb_order) d.Date_of_transfer > '$startDate' and d.Date_of_transfer < '$endDate'