$sql="select show_data.amper as amper , count(show_data.prov)as prov ,amper.amper_id , amper.amper ,amper.amount_p
from show_data , amper
where
(day= BETWEEN '$days'and '$dayl') and
(mounth = BETWEEN '$mms' and '$mml') and
(year= BETWEEN '$yys' and '$yyl') and
(amper.amper_id = show_data.amper)
group by show_data.amper";
แต่เกิดหาไม่เจอ แล้ว error แบบนี้ครับ
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\Operationroom\ex_data\anlyze_amper.php on line 156
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\Operationroom\ex_data\anlyze_amper.php on line 170