Pleaze c0derz check this c0de and c0rrect, it d0ez n0t insert data into database.
PHP Code:
<?php
error_reporting(1);
require("include/init.php");
include('top.php'); include('header.php'); include('navbar.php'); include('shoutbox.php');
$mem=mysql_real_escape_string($_POST['member']);
$visitor=mysql_real_escape_string($_POST['visitor']);
$fin=mysql_real_escape_string($_POST['footerin']);
$fout=mysql_real_escape_string($_POST['footerout']);
$css=mysql_real_escape_string($_POST['style']);
if($_POST)
{
$time=time();
$db->update_data("UPDATE b_forum SET member='$mem', visitor='$visitor', footerin='$fin', footerout='$fout', style='$css', time='$time'");
echo"SITE UPDATED"; }
?>
<form name="uform" action="admin.php" method="POST">
<table>
<div class="advert">WELCOME MESSAGE FOR VISITOR <br>
<textarea rows="5" cols="50" name="visitor" value="<?php echo $forum->visitor;?>"></textarea>
</div><br/>
<div class="advert">WELCOME MESSAGE FOR MEMBERS <br>
<textarea rows="5" cols="50" name="member" value="<?php echo $forum->member;?>"></textarea>
</div><br/>
<div class="advert">FOOTER MESSAGE FOR MEMBERS <br>
<textarea rows="5" cols="30" name="footerin" value="<?php echo $forum->footerin;?>"></textarea>
</div><br/>
<div class="advert">FOOTER MESSAGE FOR VISITOR <br>
<textarea rows="5" cols="30" name="footerin" value="<?php echo $forum->footerout;?>"></textarea>
</div><br/>
<div class="advert">SITE STYLE <br>
<textarea rows="18" cols="50" name="css" value="<?php echo $forum->style;?>"></textarea>
</div><br/>
<input type="submit" name="comment" value="comment"/>
</form><br/><br/> </table>
</form>
Comment