hello everyone.
Could someone tell me whats wrong with my script please?
<?php
session_start();
if($SESSION['username'])
{
include('conf.php');
$titre=$POST['titre'];
$autheur=$POST['autheur'];
$article=$POST['article'];
$query="INSERT INTO news (titre, autheur, article) VALUES ('$titre', '$autheur','$article') or die(mysql_error())";
$result=mysql_query($query);
if(!$result)
{
echo "not added";
}else{
echo "been added";
}
}else
{
header("Location: ../index.php");
exit();
}
?>
the news table also has articleid (auto_increment) and date (timestamp). but when I fill out the form, and click add it says "not added". I can't see anything immensly wrong, can anyone help? please!
cheers
jon