<?php include "header.php"; ?>
<div id="page-wrapper">

            <div class="row">
                <!-- Page Header -->
                <div class="col-lg-12">
<table width="100%" border="0" cellspacing="2" cellpadding="2" background="images/co-surgeons.jpg">
  <tr>
    <td align="center">

<?php
$id=$_POST['id'];
$post=$_POST['post'];
if (isset($id))
 {
 $query = "UPDATE post SET post='$post' WHERE id='$id' and session='$session' and code='$code'";
 $result = mysql_query( $query );
 if ( ! $result )
die ("Couldn't update: ".mysql_error());
?>
  <?php print "<h1>Table Updated ". mysql_affected_rows() .
" row(s) updated</h1>";
header("Location: feed_post.php");?>

<?php
}
?>

<a href="feed_post.php" ><img src="images/back.jpg"  border="0" /></a>
</td></tr></table>
</div></div></div>
<?php 
include "footer.php"; ?>