| Current Path : /var/www/html/venkat/projectaug2017/spicmckay/ |
| Current File : /var/www/html/venkat/projectaug2017/spicmckay/edit.php |
<?php
include("session.php");
include("db1.php");
//echo $r;
$sql = $conn->prepare("SELECT name,description FROM spicmckay where ldapid = :id");
$sql->bindValue(':id',$id);
$sql->execute();
$row = $sql->rowCount();
//if($row > 0) {
while ($row = $sql->fetch()) {
$name = $row['name'];
$description = $row['description'];
}
?>
<div align = "center">
<table width = "70%">
<tr colspan = "3"> <td> <b> About Yours (with us) </b> </td> </tr>
<tr> <td width = "10%"> <br> Your Name </td> <td width = "5%"> <br> : </td> <td width = "50%"> <br> <?php echo $name ?> </td> </tr>
<tr> <td> <br> Your Description </td> <td> <br> : </td> <td> <br> <?php echo $description ?> </td> </tr>
</table>
</div>
<?php
//}
//else {
?> <div align = "center"> <br><form method = "post" action = "editsubmit.php">
<table width = "70%">
<tr colspan = "3"> <td> <b> <font color = "red"> Update </font> </b> </td> </tr>
<tr>
<td> <br> Your Name </td> <td> <br> : </td> <td> <br> <input type = "text" name = "name"> </td>
</tr>
<tr>
<td> <br> Why you or your dependentat want to be part of the club </td> <td> <br> : </td> <td> <br> <textarea name = "description" rows = "13" cols = "80" maxlength = "1000"></textarea> <br> Maximum 200 chars. </td>
</tr>
<tr colspan = "3">
<td> <br> <input type = "submit" value = "Submit"> </td>
</tr>
</table>
</form>
</div>
<?php /*}
?>