Hello there everyone!!
i have created a succesful page that will update the profile of the students. It has the ability to edit the students profile and academic records. I have found out that the page is loaded so i decided to separate the two (student's profile and academic record). As easy as it gets i just copy paste it to a new file (a page for academic record only) and omits the html and handlers for student's profile codes. Unluckily i have encountered this error.
Notice: Undefined index: id in C:\xamppp\htdocs\a\Admin_Edit_Student_Acadrecord.php on line 13
Notice: Undefined index: id in C:\xamppp\htdocs\a\Admin_Edit_Student_Acadrecord.php on line 14
here are the line 13 and 14 codes
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
session_start();
$session_id = $_SESSION['admin_id'];
if($session_id == null){
header("location:Admin_Home.php");
die();
}
include 'Connect.php';
$flag = "";
$student_id = htmlentities($_GET['id'], ENT_QUOTES);
$query = "SELECT * FROM student_information where student_id='$_GET[id]'";
$result = mysqli_query($link_id, $query);
$data = mysqli_fetch_array($result);
?>
i hope someone could help me figure this out. Thank you and more power Daniweb.