title: Show data and radio button and save selected value of radio button with data
body: <p>Hi have a data base as below the data is fetching is From PHP is Working but have a problem need to show radio button against all <strong>StudentFirstName</strong> as shown below and send back the data to another Table database of respective selected radio button value. on button click  register Id can be used as primary key to store in database. </p>
  
  <p>Database</p>
  
  <pre><code> SchoolID   StudentRegID    StudentFirstName StudCourse   StudentSection 
      FT001     12KQC31085        ABC             BCOM             A
      FT001     12KQC31086        DEF             BCOM             A        
      FT001     12KQC31087        GHI             BCOM             A  
      FT001     12KQC31088        JKL             BCOM             A  
  </code></pre>
  
  <p>Database</p>
  
  <pre><code> SchoolID   StudentRegID    StudentFirstName StudCourse   StudentSection  Status
      FT001     12KQC31085        ABC             BCOM             A        Absent
      FT001     12KQC31086        DEF             BCOM             A        Leave        
      FT001     12KQC31087        GHI             BCOM             A        Absent  
      FT001     12KQC31088        JKL             BCOM             A        Present  
  </code></pre>
  
  <p>PHP Script</p>
  
  <pre><code>$mysqli=mysqli_connect('localhost','Uname','Pass','Database');
  
         //data from ajax
  $standard1 = trim($_POST["tclass"]);
  $section1 = trim($_POST["tsection"]);
  $SchoolID1 = trim($_POST["tschoolid"]);
  
  $query3="SELECT * FROM euser_student  WHERE  StudCourse='$standard1' and SchoolID='$SchoolID1'and StudentSection='$section1' order by StudentFirstName   ASC";
  $data3=mysqli_query($mysqli,$query3)or die(mysqli_error());
  
  while($row=mysqli_fetch_array($data3)){
      $dat3 = $row['StudentFirstName'];
  
      echo "&lt;table&gt;&lt;tr&gt;&lt;td&gt;"$dat3."&lt;/td&gt;&lt;/tr&gt;&lt;table&gt;";
  }
  </code></pre>
  
  <ol start="3">
  <li><p>Expecting out Put</p>
  
  <pre><code>            ABC         O Present   O Absent    O Leave
              DEF         O Present   O Absent    O Leave
              GHI         O Present   O Absent    O Leave
              JKL         O Present   O Absent    O Leave
  </code></pre></li>
  </ol>
  
  <p><strong>3.</strong> Send selected value</p>