Viewing file: certificate_registration.php (4.81 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php session_start(); ?> <?php include('session.php'); ?>
<?php include('certificateno.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Certificate Registration</title> <style type="text/css"> body { background-color: #CCC; } </style> <center> </head> <body> <table width="100%" border="0" bgcolor="#FFFFFF"> <tr> <td colspan="4" align="center"><?php include('header.php'); ?></td> </tr> <tr> <td colspan="4" bgcolor="#FFFF00"><?php include('menubar.php'); ?></td> </tr> <tr> <td colspan="3" bgcolor="#CCCCCC"> <?php include('sessisionbar.php'); ?></td> </tr> <tr> <td colspan="1" bgcolor="#CCCCCC"> <form action="" method="get" id="form" name="form"> Enter Your Roll No:- <input name="q" type="text" id="q"> <input type="submit" name="Submit" value="Search" /> </form> <?php $var = @$_GET['q'] ; $trimmed = trim($var); $link = mysqli_connect("localhost",'itce_user','rb!itc838',"itce_data"); // Check connection if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } // Attempt select query execution $sql = "select * from admission where enrollment=\"$trimmed\" "; if($result = mysqli_query($link, $sql)) { if(mysqli_num_rows($result) > 0) { while($row = mysqli_fetch_array($result)) { $coursename=$row[course]; $reciptno=$fmembercode; $rollno=$row[enrollment]; $registrationno=$row[registration]; $studentname=$row[name]; $fathername=$row[fatherName]; $class='$row[class]'; $address=$row[address1].' '.$row[district].' '.$row[pincode]; $mobile=$row[mobile]; $fees=$row[totalfees]; $ids=$row[ID]; $genter=$row[gender]; $ledger=$row[lesarno]; $cyear=$row[cyear]; $joindate=$row[regDate]; $photo=$row[photo]; $count++ ; } echo "</table>"; // Free result set mysqli_free_result($result); } else{ echo "Record Not found"; } } else{ echo "ERROR: Could not able to execute $sql. " . mysqli_error($link); } // Close connection mysqli_close($link); ?>
<form action="certificateadd.php" method="post" id="form1" name="form1">
<table width="445" border="1"> <tr> <td width="145" align="left">Certificate No </td> <td width="284" align="left"><input name="certificateno" type="text" value='<?php echo $accountnew ?>'/></td> </tr> <tr> <td width="145" align="left">Roll No </td> <td width="284" align="left"><input name="rollno" type="text" value='<?php echo $rollno ?>'/></td> </tr> <tr> <td align="left">Branch Name</td> <td align="left"><input name="branchname" type="text" readonly="readonly" value='<?php echo $user ?>'/></td> </tr> <tr> <td align="left">Course Name</td> <td align="left"><input name="coursename" type="text" readonly="readonly" value='<?php echo $coursename ?>'/></td> </tr> <tr> <td align="left">Student Name</td> <td align="left"><input name="studentname" type="text" readonly="readonly" value='<?php echo $studentname ?>'/></td> </tr> <tr> <td align="left">GENDER</td> <td align="left"><input name="gender" type="text" readonly="readonly" value='<?php echo $genter ?>'/></td> </tr> <tr> <td align="left">Grade</td> <td align="left"><input name="grade" type="text" /></td> </tr> <tr> <td align="left">Address</td> <td align="left"><input name="address" type="text" readonly="readonly" value='<?php echo $address ?>'/></td> </tr> <tr> <td align="left">Mobile</td> <td align="left"><input name="mobileno" type="text" readonly="readonly" value='<?php echo $mobile ?>'/></td> </tr> <tr> <td align="left">Father's Name</td> <td align="left"><input name="fathername" type="text" readonly="readonly" value='<?php echo $fathername ?>'/></td> </tr> <tr> <td align="left">Joinind Date</td></td> <td align="left"><input name="joindate" type="text" value='<?php echo $joindate ?>' /></td> </tr> <tr> <td align="left">Issue Date</td> <td align="left"><input name="issuedate" type="text" value='<?php echo Date('d/m/Y'); ?>' /></td> </tr>
<tr> <td align="left">Photo</td> <td align="left"><input name="photo" type="text" value='<?php echo $photo ?>' readonly /></td> </tr> <tr> <td colspan="2"><input type="submit" name="addrecod" id="addrecod" value="Submit"/></td> </tr> </table> </form> </td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td colspan="2"><?php include('footer.php'); ?></td> </tr> </table>
</body></center> </html>
|