can anyone pls check my coding?
i still get the same error🙁
<?php
//Connection statement
require_once('Connections/connICT.php');
//Aditional Functions
require_once('includes/functions.inc.php');
?>
<?php
// *** Restrict Access To Page: Grant or deny access to this page
$KT_authorizedUsers=" admin,pengguna,pegawai";
$KT_authFailedURL="aksespengguna.php";
$KT_grantAccess=0;
session_start();
if (isset($SESSION["KT_Username"])) {
if (false || !(isset($SESSION["KT_userAuth"])) || $SESSION["KT_userAuth"]=="" || strpos($KT_authorizedUsers, $SESSION["KT_userAuth"])) {
$KT_grantAccess = 1;
}
}
if (!$KT_grantAccess) {
$KT_qsChar = "?";
if (strpos($KT_authFailedURL, "?")) $KT_qsChar = "&";
$KT_referrer = $_SERVER["REQUEST_URI"];
$KT_authFailedURL = $KT_authFailedURL . $KT_qsChar . "accessdenied=" . urlencode($KT_referrer);
KT_redir($KT_authFailedURL);
}
// *** Logout the current user. false
$KT_Logout = $SERVER["PHP_SELF"] . "?KT_Logoutnow=1";
if ((isset($GET['KT_Logoutnow']) ? $GET['KT_Logoutnow'] : null)=="1") {
@session_start();
KT_session_unregister("KT_Username");
KT_session_unregister("KT_UserAuthorization");
$KT_logoutRedirectPage = "login.php";
// redirect with URL parameters (remove the "KT_Logoutnow" query param).
if ($KT_logoutRedirectPage == "") $KT_logoutRedirectPage = $SERVER["PHP_SELF"];
if (!strpos($KT_logoutRedirectPage, "?") && $SERVER['QUERY_STRING'] != "") {
$KT_newQS = "?";
reset ($GET);
while (list ($key, $val) = each ($GET)) {
if($key != "KT_Logoutnow"){
if (strlen($KT_newQS) > 1) $KT_newQS .= "&";
$KT_newQS .= $key . "=" . urlencode($val);
}
}
if (strlen($KT_newQS) > 1) $KT_logoutRedirectPage .= $KT_newQS;
}
KT_redir($KT_logoutRedirectPage);
}
// build the form action
$editFormAction = $SERVER['PHP_SELF'] . (isset($SERVER['QUERY_STRING']) ? "?" . $_SERVER['QUERY_STRING'] : "");
if ((isset($POST["MM_insert"])) && ($POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO customer (name, birthdate, email) VALUES (%s, %s, %s)",
GetSQLValueString($POST['name'], "text"),
GetSQLValueString($POST['birthdate'], "text"),
GetSQLValueString($_POST['email'], "text"));
$Result1 = $connICT->Execute($insertSQL) or die($connICT->ErrorMsg());
printf("Your ID is: %d\n", mysql_insert_id());
$insertGoTo = "confirmation.php";
if (isset($SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $SERVER['QUERY_STRING'];
}
KT_redir($insertGoTo);
} ?>