Esempio n. 1
0
?>
		<?php 
include 'studel.php';
?>

	<!--=========================================RETRIVE INDIVIDUAL AND ALTER======================================================-->
		<form action="stuupdate.php" method="POST" class="form-signin">

			
			<input type="text" name="usnno" placeholder="USN" class="form-control"></input>
			<button class="btn btn-lg btn-success btn-block btn-sm" type="submit" name="obtain" value="submit">Retrive</button>			
		</form>
<?php 
if (isset($_POST["obtain"])) {
    $usnno = trim($_POST["usnno"]);
    $onestud = select_a_stud($usnno);
    while ($extract = mysqli_fetch_assoc($onestud)) {
        ?>
						<form action="stuupdate.php" method="POST" class="form-signin">
							<input type="text" class="form-control"  name="stnme"   value="<?php 
        echo $extract["name"];
        ?>
"  />
							<input type="text" class="form-control"  name="stsn"  value="<?php 
        echo $extract["USN"];
        ?>
"  />
							<input type="text" class="form-control"  name="stusm"  value="<?php 
        echo $extract["Sid"];
        ?>
"  /> 
Esempio n. 2
0
<?php 
if (isset($_POST["logof"])) {
    redirect_to("index.php");
}
?>

<h1 class="page-header">Hi, <?php 
$name = select_a_stud($cur_usn);
$nmz = mysqli_fetch_assoc($name);
echo $nmz["name"];
?>
</h1>
  <h5 class="page-header"><?php 
$inf = select_stu_dep($cur_dep);
$snf = select_stu_sem($cur_sem);
$unz = select_a_stud($cur_usn);
$dpz = mysqli_fetch_assoc($inf);
$dps = mysqli_fetch_assoc($snf);
$dpu = mysqli_fetch_assoc($unz);
echo "<pre><b>Department : </b>" . $dpz["D_name"] . "<br/>";
echo "<b>Semester   : </b>" . $dps["S_name"] . " Semester<br/>";
echo "<b>USN        : </b>" . $dpu["USN"] . "</pre>";
?>
</h5>

 <div class="header clearfix"></div>
<table class="table table-striped">
  <thead>
    <tr>
      <th>Subject_code</th>
      <th>Subject_Name</th>