Have the following code....
Here is the screwy thing. It updates the database correctly, however, $result for some reason is still coming back false so the $query is printed to the screen. Any ideas why?
Thanks in advance.
Code:
$query = "UPDATE tablename SET title='$title', content='$cont' WHERE contentid='$cid'";
$result = mssql_query ($query);
if ($result){
echo '<p>Database updated</p>';
} else {
echo $query;
}
Thanks in advance.