rendered paste body<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<style type="text/css">
<!--
body,td,th {
color: #FFFFFF;
}
body {
background-color: #363636;
}
-->
</style><?php
if ($_GET['id'] == $id) ;
if ($_GET['id'] == '') {
echo 'you have not selected a news post' ;}
else
{
// Connects to your Database
include("../db_connect.php");
$data = mysql_query("SELECT * FROM live_edit where id = $id")
or die(mysql_error());
while($info = mysql_fetch_array( $data ))
{
Print "<form action=edit_do.php method=post name=edit>";
Print "<input name=id type=text value=".$info['id'] . " size=5 maxlength=50 readonly/>";
Print "<input name=date type=text value=".$info['date'] . " size=12 maxlength=50 /><br />";
Print "<input name=title type=text value=".$info['title'] . " size=50 maxlength=50 /><br />";
Print "<br />";
Print "<textarea name=body cols=50 rows=10 >".$info['body'] ." </textarea><br />";
Print "<br/><input type=submit value=Submit>";
Print "</form>";
}
Print "</table>";
}
?>