Index.php

File

<?php
session_start ();


?>
<html lang="en">


<form action="register_news.php" method="POST">
<h1><font face="arial"> News by Workload </font> </h1>
<table cellpadding="2" cellspacing="2" border=0">
<tr>
<td>User : </td>
<td><input type="text" name="user"></td>
</tr>
<tr>
<td>News : </td>
<td><textarea cols="40" rows="3" name="news"></textarea></td>
</tr>
<tr>
<td>Email : </td>
<td><input type="text" name="email"></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="submit your news"></td>
<td><input type="reset" value="reset your Form"></td>
</tr>
</table>
</form>

</html>

######################
register_news.php

<?php
session_start ();

$connect = Mysql_connect ("localhost","root") or die (mysql_error());
$database = mysql_select_db ("hdvidsonly",$connect);

//get the data
$user = strip_tags ($_POST ["user"]);
$email = strip_tags ($_POST ["email"]);
$news = strip_tags ($_POST ["news"]);
$date = ("Y-m-d");


//check for the values
if ($user && $email && $news)

{

if (strlen($user)<=3 || strlen($email)<=4 || strlen ($news) <=10)
{
echo "the string values are too short.";
}
else
{

$query = mysql_query("INSERT INTO news_feature (id,user,date,news,eamil) VALUES ('','$user','$date,'$news','email')") or die (mysql_error());
echo "The News submission of $user was successfull.";
}




?>


Parse error: syntax error, unexpected $end in C:\xampp\htdocs\register_news.php on line 33


I checked this out

Line 33 is when my script ends.
?>

Im using xampp
wins392

Your a legend m8!!!!!!!!!!!1
Thanks alot.