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/la_json.php

<?php

include '../db/database.php';

$sql = "SELECT * FROM teacher AS t1 INNER JOIN title_name AS t2 ON (t1.titleID = t2.titleID)      
       LEFT JOIN  la_history AS t3   ON (t1.teacherID = t3.teacherlaID ) WHERE status_user = 1 or status_user = 2 or status_user = 3
        group by teacherID order By lahistoryID desc ";
        

$result = mysqli_query($link, $sql);

$educationArray = array();
while ($row = mysqli_fetch_assoc($result)) {
    $educationArray[] = $row;
}
echo json_encode($educationArray);

Zerion Mini Shell 1.0