Add the main admin, dosen, mahasiswa, API, and service code needed to run the core legacy application with configurable upload storage.
16 lines
345 B
PHP
16 lines
345 B
PHP
<?php
|
|
session_start();
|
|
include ("../../../inc/helper.php");
|
|
include ("../../../inc/konfigurasi.php");
|
|
include ("../../../inc/db.pdo.class.php");
|
|
|
|
$db=new dB($dbsetting);
|
|
if($_POST['nim']){
|
|
$db->runQuery("SELECT idmhs FROM tbmhs WHERE nim='".$_POST['nim']."' LIMIT 1");
|
|
if($db->dbRows()>0){
|
|
echo "false";
|
|
}else{
|
|
echo "true";
|
|
}
|
|
}
|
|
?>
|