| Current Path : /var/www/html/venkat/project0416/ |
| Current File : /var/www/html/venkat/project0416/hquery.php |
<?php
include("hhome.php");
?>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" enctype="multipart/form-data" method="post" action="hquery.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>Provide the details</strong></td>
</tr>
<tr>
<td width="250">Enter the student rollno</td>
<td width="16">:</td>
<td width="394">
<input type = "text" name ="query"></td>
</tr>
<tr>
<td width="25"><input type="submit" value="Submit " /></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</center>
<?php
if(isset($_POST['query'])) {
$option1 = addslashes($_POST['query']);
?>
<br>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" enctype="multipart/form-data" method="post" action="verify.php">
<td>
<table width="100%" border="1" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="8"><strong>Following are detail of <?php echo($option1);?> </strong></td>
</tr>
<tr>
<td><b>Project Id</font></td>
<td><b>Roll No.</font></td>
<td><b>Name</font></td>
<td><b>Guide</font></td>
<td><b>Co-Guide</font></td>
<td><b>Title</font></td>
<td><b>Date of Register</font></td>
<td><b>Registered By</font></td>
</tr>
<?php
$quer1=mysql_query("select projectid, rollno, name, guide, coguide, date, title, register from delete1 where rollno='$option1' order by projectid") or die("Invalid Access3 !!!");
while($row = mysql_fetch_array( $quer1 ))
{
$id=$row['projectid'];
$rollno=$row['rollno'];
$name=$row['name'];
$faculty=$row['guide'];
$coguide=$row['coguide'];
$date=$row['date'];
$title=$row['title'];
$register=$row['register'];
?>
<tr>
<td><?php echo($id); ?></font></td>
<td><?php echo($rollno); ?></font></td>
<td><?php echo($name); ?></font></td>
<td><?php echo($faculty); ?></font></td>
<td><?php echo($coguide); ?></font></td>
<td><?php echo($title); ?></font></td>
<td><?php echo($date); ?></font></td>
<td><?php echo($register); ?></font></td>
</tr>
<?php
}
?>
</form>
</table>
</td>
</tr>
</table>
<?php
}