Forum Moderators: coopster
Lets get to the error...
heres my code...
<?php
include(config.php);
$Date1=$_POST['Date1'];
$Date2=$_POST['Date2'];
$Date3=$_POST['Date3'];
$News1=$_POST['News1'];
$News2=$_POST['News2'];
$News3=$_POST['News3'];
$sql="INSERT INTO $tbl_name(Date1, News1, Date2, News2, Date3, News3)VALUES('$Date1', '$News1', '$Date2', '$News2', '$Date3', '$News3');
$result=mysql_query($sql);
if ($result)
{
echo "successfull";
}
else
{
echo "ERROR";
}
mysql_close();
?>
ERROR IS :
Parse error: syntax error, unexpected T_STRING in insertnews.php on line 19
can anyone please solve my problem
i ll b very thankfull to you.