Why is Edit Profile Page empty - showing only title and button

<?php session_start(); include('includes/config.php'); error_reporting(0); if(strlen($_SESSION['alogin'])==0) { header('location:index.php'); } else{ if(isset($_POST['submit'])) { $regid=intval($_GET['id']); $studentname=$_POST['studentname']; $photo=$_FILES["photo"]["name"]; $cgpa=$_POST['cgpa']; move_uploaded_file($_FILES["photo"]["tmp_name"],"studentphoto/".$_FILES["photo"]["name"]); $ret=mysqli_query($con,"update students set studentName='$studentname',studentPhoto='$photo',cgpa='$cgpa' where Email='$regid'"); if($ret) { $_SESSION['msg']="Student Record updated Successfully !!"; } else { $_SESSION['msg']="Error : Student Record not update"; } } ?> Student Profile <?php include('includes/header.php');?> <?php if($_SESSION['alogin']!="") { include('includes/menubar.php'); } ?>

Student Registration

Student Registration
<?php echo htmlentities($_SESSION['msg']);?><?php echo htmlentities($_SESSION['msg']="");?> <?php $regid=intval($_GET['id']);

$sql=mysqli_query($con,“Select * from students where Email=’$regid’”);
$cnt=1;
while($row=mysqli_fetch_array($sql))
{ ?>

                <div class="panel-body">
                <form name="dept" method="post" enctype="multipart/form-data">
Student Name
Email Address
Student ID No.
CGPA
Student Photo <?php if($row['studentPhoto']==""){ ?> <?php } else {?> <?php } ?>
Upload New Photo
<?php } ?>

Update

<?php include('includes/footer.php');?> <?php } ?>