| Current Path : /var/www/html/venkat/course/evaluation/ |
| Current File : /var/www/html/venkat/course/evaluation/login_successcopy.php |
<?php
include("session.php");
include("db1.php");
//echo $r;
$sql = $conn->prepare("SELECT name,model,other FROM laptop where email = :rollno");
$sql->bindValue(':rollno',$id);
$sql->execute();
$row = $sql->rowCount();
if($row > 0) {
while ($row = $sql->fetch()) {
$name = $row['name'];
$model = $row['model'];
$other = $row['other'];
}
?>
<div align = "center">
<table>
<tr colspan = "3"> <td> <b> Your preference </b> </td> </tr>
<tr> <td> <br> Your Name </td> <td> <br> : </td> <td> <br> <?php echo $name ?> </td> </tr>
<tr> <td> <br> Your Final Model </td> <td> <br> : </td> <td> <br> <?php echo $model ?> </td> </tr>
<tr> <td> <br> Other Model (if any) </td> <td> <br> : </td> <td> <br> <?php echo $other ?> </td> </tr>
<tr> <td> <br> Department </td> <td> <br> : </td> <td> <br> <?php echo $dept ?> </td> </tr>
</table>
</div>
<?php
}
else {
?> <div align = "center"> <br><form method = "post" action = "submit.php">
<table>
<colspan = "3"> <td> <b> Submit your Poster Details </b> </td> </tr>
<tr> <td> <br> Choose Your Department </td> <td> <br> : </td>
<td> <br> <select name = "department">
<option value = "Information Technology"> Information Technology </option>
<option value = "Electronics and Communication Engineering"> Electronics and Communication Engineering </option>
<option value = "Applied Science"> Applied Sciencie </option>
<option value = "Management Studies"> Management Studies </option>
</select>
</td>
</tr>
<tr>
<td> <br> Your Name </td> <td> <br> : </td> <td> <br> <input type = "text" name = "name"> </td>
<td> <br> Your Roll No. </td> <td> <br> : </td> <td> <br> <input type = "text" name = "rollno"> </td>
<td> <br> Your Paper Title </td> <td> <br> : </td> <td> <br> <input type = "text" name = "title"> </td>
</tr>
<tr colspan = "3">
<td> <br> <input type = "submit" value = "Submit"> </td>
</tr>
</table>
</form>
</div>
<?php }
?>