I'm trying to update a table for editing news, but its only working when I Update it with a number...doesn't work with letters.
if(isset($_POST['editnews']))
{
$nid = $_POST['id'];
$title2 = $_POST['title2'];
$body2 = $_POST['body2'];
mysql_query("UPDATE news SET title = ".$title2." , body = ".$body2." WHERE id = ".$nid." ");
echo "Updated succesfully.";
}
If you want to see my whole code for editing the news, ask it.