Hi Everyone,
I am retriving data from 'orders' table. In that table lots of fields. But i m trying to retrive data monthly. And also in the same page I made a link named "download as excel". I managed some php codes in "php_xcel_month.php" for downloading all the data as Excel format . But after clicking on the link, i m getting messasge box & i succedd to save as excel format. But no data are reteiving. I mean that excel file is emptly.
The Error is "No matching data found".

So whats wrong with my codes?please see the attachment.

    first:

    $month = $_POST[month];

    become

    $month = $_POST['month'];

    if not
    $month = '';

      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...

        Write a Reply...