Mini Shell

Direktori : /var/www/vhosts/ccp.ac.th/smtp.ccp.ac.th/httpdocs/new/sp/admin/
Upload File :
Current File : /var/www/vhosts/ccp.ac.th/smtp.ccp.ac.th/httpdocs/new/sp/admin/edit_education.php

<?php

    include '../db/database.php';
    $educationID = $_POST['id'];
    $sql = "SELECT * FROM education AS t1 LEFT JOIN level_education AS t2 ON (t1.levelID = t2.levelID)
                 WHERE educationID ='$educationID' ";
   $query = mysqli_query($link, $sql);
while($row = mysqli_fetch_array($query)){
$json_data[]=array(
  "educationID"=>$row['educationID'],
  "teacheredID"=>$row['teacheredID'],
  "levelID"=>$row['levelID'],
  "degreeName"=>$row['degreeName'],
  "degreeSubject"=>$row['degreeSubject'],
  "degreeInstitution"=>$row['degreeInstitution'],
  "other"=>$row['other'],
 );
}
$json= json_encode($json_data[0]);
echo $json;


 ?>

Zerion Mini Shell 1.0