Input Data is failed
Posted: Mon Jul 09, 2007 3:59 pm
Hi,
I have php form script, and the last code is like this
I've got an "input data failed" message. So how can I fix it? Where is my mistake?
Thx,
ayoksus
I have php form script, and the last code is like this
Code: Select all
$input=mysql_query("INSERT INTO news(category,username,title,headline)
VALUES ('$category','$username','$title','$headline')");
if($input)
{
echo "Input data is success<BR>";
echo "<a href=form_news.php>Add more news</a>";
echo "<a href=logout.php>Logout</a>";
}
else
{
echo "Input data is failed";
}Thx,
ayoksus