b0y-101 Mini Shell


Current Path : E:/www/b-group.old/spfin - Copy/application/admission/apppayment/
File Upload :
Current File : E:/www/b-group.old/spfin - Copy/application/admission/apppayment/index.php

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>spfin.ru.ac.th</title>
</head>
	<?php header('Location: https://spfin.ru.ac.th/application/admission/apppayment/mainadd.php');
?>
<body>
</body>
</html>




























//เชื่อมต่อ database
include_once("../../../conapps/dbcon.php");
	
//connect database
$objCon = mysqli_connect($servername,$username, $password, $dbname);
	// Check connection
if ($objConnect->connect_error) {
  die("Connection failed: " . $objConnect->connect_error);
}
	
	$strSQL ="SELECT status FROM `tb_projectem` WHERE idproem=2 and procode='eng.training66' "or die("Error:" . mysqli_error());
	
	//$objQuery = $objConnect->query($strSQL);	
//$objQuery1 = $objConnect->query($strSQL);	
//$objResult1 = $objQuery1->fetch_assoc();

//$qcheck = mysqli_query($objCon, $check );
//$fcheck = mysqli_fetch_assoc($qcheck);




$objQuery = $objCon->query($strSQL);	
$objQuery1 = $objCon->query($strSQL);	
$objResult1 = $objQuery1->fetch_assoc();


	
//$status=$objQuery1['status'];
//echo($status);
print_r($strSQL);
print_r($objResult1['status']);
$status = $objResult1['status'];
//print_r($objResult1);
//echo($status);


if ($status=='ปิด'){
	header('Location: https://spfin.ru.ac.th/application/admission/apppayment/engpayment.php');
}else{
	header('Location: https://spfin.ru.ac.th/application/admission/apppayment/mainadd.php');
}
        
	?>

Copyright © 2019 by b0y-101