<commit_before><!-- PHP display info on modal in doctor dashboard -->

<?php  

include('send-prescription-doctor-dashboard.php');
       
require_once 'config.php';
 if(isset($_POST["patient_id"]))  
 {  
      $output = '';  
      $query = "SELECT * FROM patient_table WHERE patient_id = '".$_POST["patient_id"]."'";  
      //echo $query;
      
      $result = mysqli_query($DBcon, $query);  
      
      $output .= '  
      <div class="table-responsive">  
           <table class="table table-bordered">';  
      while($row = mysqli_fetch_array($result))  
      {  
           $output .= '  
                <tr>  
                     <td><label>First name</label></td>  
                     <td>'.$row["patient_fname"].'</td>  
                </tr>  
                <tr>  
                     <td><label>Second name</label></td>  
                     <td>'.$row["patient_lname"].'</td>  
                </tr>
                <tr>  
                     <td><label>Address</label></td>  
                     <td>'.$row["patient_address_line_one"].'</td>  
                </tr>  
         
           ';  
        
      $output .= '  
           </table>  
      </div>
      <form method="post" action="lib/send-prescription-doctor-dashboard.php">
      <div class="hide-drop">
        <input name="patient_id" value="'.$row["patient_id"].'"/>
      </div>

       <div class="modal-footer">
        <button type="submit"  class="btn btn-primary btn-lg btn-block" name="btn-send" >Send</button>
       </div>
       </form>
       <button type="submit"  class="btn btn-primary btn-lg btn-block" name="btn-send" form="sendingPrescription" >Send</button>

      ';
      }
      echo $output;  <commit_msg>deleting changes<commit_after><!-- PHP display info on modal in doctor dashboard -->

<?php  

include('send-prescription-doctor-dashboard.php');
       
require_once 'config.php';
 if(isset($_POST["patient_id"]))  
 {  
      $output = '';  
      $query = "SELECT * FROM patient_table WHERE patient_id = '".$_POST["patient_id"]."'";  
      //echo $query;
      
      $result = mysqli_query($DBcon, $query);  
      
      $output .= '  
      <div class="table-responsive">  
           <table class="table table-bordered">';  
      while($row = mysqli_fetch_array($result))  
      {  
           $output .= '  
                <tr>  
                     <td><label>First name</label></td>  
                     <td>'.$row["patient_fname"].'</td>  
                </tr>  
                <tr>  
                     <td><label>Second name</label></td>  
                     <td>'.$row["patient_lname"].'</td>  
                </tr>
                <tr>  
                     <td><label>Address</label></td>  
                     <td>'.$row["patient_address_line_one"].'</td>  
                </tr>  
         
           ';  
        
      $output .= '  
           </table>  
      </div>
      <form method="post" action="lib/send-prescription-doctor-dashboard.php">
      <div class="hide-drop">
        <input name="patient_id" value="'.$row["patient_id"].'"/>
      </div>

       <div class="modal-footer">
        <button type="submit"  class="btn btn-primary btn-lg btn-block" name="btn-send" >Send</button>
       </div>
       </form>
      ';
      }
      echo $output;  
{'fraction_non_alphanumeric': 0.17123081552813724, 'fraction_numerical': 0.0, 'mean_word_length': 1.5086792452830189, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7119152', 'n_tokens_mistral': 1039, 'n_tokens_neox': 1007, 'n_words': 162}