runQuery($sQuery0); $iFilteredTotal = $db->dbRows(); $result=$db->runQuery($sQuery0.$sLimit); /* Total data set length */ $sQuery2 = " SELECT COUNT(trh.id) as total FROM $sTable $sWhere $where2 "; //echo $sQuery2; $db->runQuery($sQuery2); $aResultTotal = $db->dbFetch(); $iTotal = $aResultTotal['total']; /*$rResultTotal = mysql_query( $sQuery, $gaSql['link'] ) or fatal_error( 'MySQL Error: ' . mysql_errno() ); $aResultTotal = mysql_fetch_array($rResultTotal); $iTotal = $aResultTotal[0];*/ /* * Output */ $output = array( "sEcho" => intval($_GET['sEcho']), "iTotalRecords" => $iTotal, "iTotalDisplayRecords" => $iFilteredTotal, "aaData" => array() ); while ( $aRow = $db->dbFetch($result) ) { //print_r($aRow); $row = array(); $row[0]=$aRow['nm_mhs']."
NIM: ".$aRow['nim']; $row[1]=''.$aRow['judul_final'].'
'; $row[1].='Pembimbing 1: '.$aRow['dpemb1'].' | Pembimbing 2: '.$aRow['dpemb2'].'
Penguji 1: '.$aRow['dpeng1'].' | Penguji 2: '.$aRow['dpeng2']; $row[2]=$aRow['tahun_ajaran']." - ".$aRow['semester']; $row[3]=tanggalIndo($aRow['tgl_kep']." ".$aRow['wkt_kep'],'j F Y, H:i'); /*$row[4]='1. '.$aRow['dpemb1'].'
2. '.$aRow['dpemb2']; $row[5]='1. '.$aRow['dpeng1'].'
2. '.$aRow['dpeng2'];*/ $output['aaData'][] = $row; // print_r($row); } echo json_encode( $output ); ?>