
PK 
<?php
include_once('include/common.php');
include_once('include/connection.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=iso-8859-1" />
<title>list</title>
</head>
<body onLoad="window.print(); window.close();">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<!--header-->
<tr>
<td></td>
</tr>
<!--/header-->
<tr>
<td valign="top">
<table border="0" width="100%" height="250px" cellpadding="0" cellspacing="5">
<?php
//$certificate=$_POST['certificateNo'];
//$search=$_POST['search'];
$SelectForSearch="SELECT * FROM certificate WHERE name='".$_GET['search']."' || certificateNo='".$_GET['search']."'";
$queryForSearch=mysql_query($SelectForSearch);
if(mysql_num_rows($queryForSearch)>0){
while($resultForSearch=mysql_fetch_array($queryForSearch)) {
$i++;
?>
<tr bgcolor="#F4A933" style="height:45px;">
<td colspan="3" align="center">Your Result</td>
</tr>
<tr>
<td>Certi No</td>
<td><?=$resultForSearch['certificateNo']; ?></td>
<td rowspan="2"><img src="<?php echo HTTP_ROOT; ?>admin/student_images/<?php echo $resultForSearch['img']; ?>" width="70px" height="70px" border="1px"></td>
</tr>
<tr>
<td>Name</td>
<td><?=$resultForSearch['name']; ?></td>
</tr>
<tr>
<td>Father Name</td>
<td><?=$resultForSearch['fatherName']; ?></td>
</tr>
<tr>
<td>Reg No</td>
<td><?=$resultForSearch['regNo']; ?></td>
</tr>
<tr>
<td>Admission Date</td>
<td><?=$resultForSearch['admiDate']; ?></td>
</tr>
<tr>
<td>Course</td>
<td><?=$resultForSearch['course']; ?></td>
</tr>
<tr>
<td>Grade</td>
<td><?=$resultForSearch['grade']; ?></td>
</tr>
<tr>
<td>Address</td>
<td><?=$resultForSearch['address']; ?></td>
</tr>
<tr>
<td>Center Name</td>
<td><?=$resultForSearch['centerName']; ?></td>
</tr>
<? } } else { echo '<tr><td>Empty Result</td></tr>'; } ?>
</table>
</td>
</tr>
<!--footer-->
</table>
</body>
</html>


PK 99