Current File : /home/inlingua/public_html/sensoriumpsychologists.com/diagnostics/franchise/student_update.php |
<?php include('../franchise_back/connection.php');
$mysqli = new mysqli($host_db,$user_db,$pass_db,$name_db);
if ($mysqli -> connect_errno) {
echo "Failed to connect to MySQL: " . $mysqli -> connect_error;
exit();
}
session_start();
$student_id=$_GET['student_id'];
$franchise_id=$_SESSION['log_id'];
$updated_by=$_SESSION['log_name'];
$prepared_statement="SELECT * FROM shristi_child_details WHERE table_id=$student_id ";
$result = $mysqli -> query($prepared_statement);
$row = $result -> fetch_assoc();
//echo '<pre>'; print_r($_SESSION); exit;
$ex_date = new DateTime("+7 months");
$ex_date1=$ex_date->format('Y-m-d');
$rdate=date('Y-m-d');
$std_update="update shristi_child_details set next_end_date='$ex_date1',status='active',franchise_id='$franchise_id',updated_by='$updated_by' WHERE table_id=$student_id ";
$result = $mysqli -> query($std_update);
$std_update="update shristi_students_payments set updated_by='$updated_by',payment_mode='ewallet',status='paid' WHERE student_id=$student_id ";
$result = $mysqli -> query($std_update);
/*
$spoint=$_POST['next']-1;
$start=$_POST['next'];
$prepared_statement="INSERT INTO shristi_questionnaires_temp_answers(franchise_id,ref_no,screening_id,main_question_id,sub_question_id,answer,created_by,created_ip,created_browser) VALUES";
$ref_no=$_SESSION['ref_no'];
$franchise_id=$_SESSION['log_id'];
$screening_id=$_SESSION['screening_id'];
$ongoing_section_no=$_SESSION['ongoing_section_no'];
$created_by=$_SESSION['log_id'];
$created_ip=$_SERVER['SERVER_ADDR'];
$created_browser=$_SERVER['HTTP_USER_AGENT'];
*/
//echo $_POST['next'];
echo "<meta http-equiv=\"refresh\" content=\"03;URL=pending_admissions_by_us.php\">";
?>
<!doctype html>
<html>
<?php include("common/page_head.php");?>
<script src="javascript/numberkey.js"></script>
<body>
<?php include("common/header_var.php");?>
<?php
$top_enrollment=$top_val;
?>
<?php include("common/header.php");?>
<div id="main_container">
<div id="main">
<br />
<br />
<div class="top_heading_page">Student Updated !!!</div>
<br>
<br>
</div>
</div>
</body>
</html>