PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$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";
}
I've got an "input data failed" message. So how can I fix it? Where is my mistake?