Forum Moderators: coopster
<?php require_once('../Connections/somefile.php');?>
<?php
$newsid = $_POST['newsid'];
$date = $_POST['date'];
$news = $_POST['news'];
$title = $_POST['title'];
$fulltext = $_POST['fulltext'];
$expires = $_POST['expires'];
mysql_select_db($database_blah, $blah);
$sqlquery = "UPDATE `news` SET `date` = '$date', `news` = '$news',
`title` = '$title', `fulltext` = '$fulltext', `expires` = '$expires' WHERE `newsid` = $newsid";
$results = mysql_query($sqlquery);
mysql_close();
?>
the $_POST variables are all pulling the correct information but it is not updating the db. Some help?