Hello,
I have this script:
<?php
session_start();
include 'header.php';
include 'db.php';
// Define post fields into simple variables
$titel = $_POST['titel'];
$commentaar = $_POST['commentaar'];
$auteur = $_POST['auteur'];
$titel = stripslashes($titel);
$commentaar = stripslashes($commentaar);
$auteur = stripslashes($auteur);
if((!$titel) || (!$commentaar) || (!$auteur)){
echo 'Je hebt de volgende informatie niet ingevult.<br />';
if(!$titel){
echo "Titel, deze is benodigt.<br />";
}
if(!$commentaar){
echo "Commentaar, deze is benodigt.<br />";
}
if(!$auteur){
echo "Auteur, deze is benodigt.<br />";
}
include 'join_form.php';
exit();
}
$commentaar = htmlspecialchars($commentaar);
mysql_query("INSERT INTO nieuws (datum, titel, commentaar, auteur,) VALUES('date(Y-m-d)', '$titel', '$commentaar', '$auteur');
or die (mysql_error());
echo 'Je bericht is gepost';
include 'footer.php';
?>
And when i execute it it says:
Parse error: parse error, unexpected $ in /home/virtual/site185/fst/var/www/html/leden/nieuws.php on line 32
I have cut my script down to the minimum but it keep showing up.
Maybe is there somebody familiar with this problem becuase i never saw such an error...