I want to add the logged in username to my database, i know the error is in the way i'm adding the username... can someone please correct the format
error is
Parse error: parse error, expecting T_STRING' orT_VARIABLE' or `T_NUM_STRING' in /home/httpd/vhosts/httpdocs/admin/newssave.php on line 255
<?php
session_start();
if (!$_SESSION["valid_user"])
{
// User not logged in, redirect to login page
Header("Location: login.php");
}
?>
<?php
$body = str_replace ("\r", "<br>", $body);
$result = mysql_query ("INSERT INTO news (`id`,`header`,`author`,`IMG`,`body`,`source`,`result_id`,`user`,`datestring`,`MAIN`,`WRE`,`AKL`,`TRG`,`PMR`,`NPL`,`WLG`,`OHA`,`CHC`,`DUD`,`NZK`,`NZW`,`NZI`,`AGE`,`EDI`,`BCC`,`BULLS`,`FAL`,`REP`,`JKS`,`NZA`,`FEM`) Values('','$header','$author','$IMG','$body','$source','$result_id','$_SESSION["valid_user"]','$datestring','$MAIN','$WRE','$AKL','$TRG','$PMR','$NPL','$WLG','$OHA','$CHC','$DUD','$NZK','$NZW','$NZI','$AGE','$EDI','$BCC','$BULLS','$FAL','$REP','$JKS','$NZA','$FEM')") or die("INSERT error: ".mysql_error());
?>