rendered paste body$oContent = post_addslashes('content');$oTitle = post_addslashes('title');$query = mysql_query("SELECT content, title, date, id FROM main ORDER BY id DESC"); while(($oBlog = mysql_fetch_assoc($query)) !== false){ if(!$oContent) $oContent = $oBlog['content']; if(!$oTitle) $oTitle = $oBlog['title']; if(!$oDate) $oDate = date("F jS, Y"); ?> <p>Posted date : <?=$oDate?></p> <form action="<?=$PHP_SELF?>" method="POST"> <textarea name="title" rows="1" cols="63"><?=$oTitle?></textarea><br /> <textarea name="content" rows="20" cols="63"><?=$oContent?></textarea><br /> <input type="submit" name="submit" value="Submit" /> </form>