Hi Vronsky,
Thanks for reply. I hope u've understood the actual problem. I followed ur way, but still no records retriving from database when I m using any condition.
but If I TYpe the query "Select * from orders", then all recors are displayng perfectly from database. So, whats the problem with 'Condition'?
If u have somre other code to convert records to xcel & pdf fomat, than plz upload for me...
And also I did not understand the last sentence -
if not
$month = ''; Where & how can I use it?
Thanks again...