Ok Frodo, that seems to work on adding a new article, but when i edit it the same old thing is happening, below is the update page:
PHP Code:
<?php
header("Location: ../news/1.htm");
include('../forum/SSI.php');
dbConnect();
global $context;
if($context['user']['is_logged'])
{
$validate_admin = check_admin_userid($context['user']['id']);
$validate = check_sec_admin_userid($context['user']['id'],2);
if(($validate == true) || ($validate_admin == true))
{
$content = $_REQUEST['body'];
$content = mysql_escape_string($content);
mysql_query("UPDATE news SET title='".$_GET['title']."', body='".$content."' WHERE id=".$_GET['id']."");
}
}
closeConnect();
?>