3 Commits

2 changed files with 10 additions and 2 deletions

View File

@ -33,8 +33,8 @@
DEFINE("EMAIL_SENDERNAME","");
DEFINE("EMAIL_SENDERALIAS","Telkomcel");
DEFINE("EMAIL_SUBJECT","Info Telkomcel");
// DEFINE("DB_HOST_NAME","172.17.12.21");
DEFINE("DB_HOST_NAME","192.168.1.4");
DEFINE("DB_HOST_NAME","172.17.12.21");
// DEFINE("DB_HOST_NAME","192.168.1.4");
//DEFINE("DB_HOST_NAME","172.17.12.71");
// DEFINE("DB_USER_NAME","ssotcel");
DEFINE("DB_USER_NAME","appaportil");

View File

@ -368,6 +368,14 @@
sectionname='$sectionname',iddept='$iddept',deptname='$departmentname',uby='".$_SESSION['nik']."',udt=now()
where id='$id'";
}
else{
$qrychk="select id from ".DB_APORTIL.".tbl_employee where nik='$nik' and isdeleted=0 order by id asc limit 1";
if($this->fn_row_isexists($qrychk))
{
echo "failed|Error Found : Nik <b>$nik</b> already exists";
return false;
}
}
if($this->executequery($qry)){echo "ok|";return true;}
}