Forum Moderators: coopster
<?
$news = $_POST["news"];
$title = $_POST["title"];
mysql_connect("localhost","name","pass");
mysql_select_db("dbname");
$addnews =MYSQL_QUERY("INSERT INTO news (id,title,news)". "VALUES ('NULL', '$title', '$news')");
echo("News Added!");
?>
Is there something similar to the
MYSQL_QUERY("INSERT INTO news (id,title,news)". "VALUES ('NULL', '$title', '$news')");
line that I can use to delete an entry, instead of add one?