title: display sub-category under category with certain value
body: <p>I have a table "tests".</p>
  
  <pre><code>Category     |   Heading  |    Tests      |
  HB           |Hematology  |     HB        |
  TC           |Hematology  |     TC        |
  DC           |Hematology  |     Neutrophil|
  DC           |Hematology  |     Monocyte  |
  DC           |Hematology  |     Lymphocyte|
  DC           |Hematology  |     Basophil  |
  KFT          |Biochemistry| Urea          |
  KFT          |Biochemistry| S.Creatinine  |
  KFT          |Biochemistry| S.Uric Acid   |     
  Lipid Profile|Biochemistry| Cholesterol   |
  Lipid Profile|Biochemistry| Triglyceride  |
  Lipid Profile|Biochemistry|HDL Cholesterol|
  Lipid Profile|Biochemistry|LDL Cholesterol|
  Albumin      |Biochemistry|   Albumin     | 
  Globulin     |Biochemistry|   Globulin    |   
  Amylase      |Biochemistry|   Amylase     |  
  VDRL         |  Serology  |   VDRL        |  
  HIV          |  Serology  |   HIV         |  
  HCV          |  Serology  |   HCV         |  
  Dengue       |  Serology  |   NS1 Antigen |  
  Dengue       |  Serology  |   IgG Antibody|  
  Dengue       |  Serology  |   IgM Antibody|  
  Urine R/E    |     Urine  |   Color       |
  Urine R/E    |     Urine  |   Transparency| 
  Urine R/E    |     Urine  |   Reaction    | 
  </code></pre>
  
  <p>another table "patient"</p>
  
  <pre><code>Name     |    Tests      |    P_no
  John     |     HB        |     1
  Krish    |     HB        |     2
  Krish    |     TC        |     2
  Krish    |     DC        |     2
  Krish    |     Urine R/E |     2
  Krish    |     Dengue    |     2
  Amy      |     HB        |     3
  Amy      |     TC        |     3
  Amy      |     DC        |     3
  Amy      |     KFT       |     3
  Amy      |     Albumin   |     3
  Amy      |     HIV       |     3
  Amy      |     Dengue    |     3
  Amy      |     Urine R/E |     3
  </code></pre>
  
  <p>I have a form "Entry". I placed a textbox to enter patient's number to get the test details for report entry.</p>
  
  <pre><code>Patient Number : Textbox
  
            Submit Button
  </code></pre>
  
  <p>Putting number '3' in textbox and submitting the form, It has to display another form "Result.php" according to patient number as follows.</p>
  
  <pre><code>Patient No. : 3            Patient Name : Amy
  
                    Tests for Hematology
  
    HB                 HB             Textbox
    TC                 TC             Textbox
    DC             Neutrophil         Textbox
                   Monocyte           Textbox
                   Lymphocyte         Textbox
                   Basophil           Textbox
  
                  Tests for Biochemistry
  
    KFT            Urea               Textbox
                 S.Creatinine         Textbox
                 S.Uric Acid          Textbox
    Albumin         Albumin           Textbox
  
                  Tests for Serology
  
    HIV            HIV                Textbox
    Dengue         NS1 Antigen        Textbox
                   IgG Antibody       Textbox
                   IgM Antibody       Textbox
  
                  Tests for Urine
  
    Urine R/E         Color           Textbox
                      Transparency    Textbox
                      Reaction        Textbox
  </code></pre>
  
  <p>Need help to get "Result.php" as it has shown. Any help will be appreciated.</p>