I am trying to create an "edit article" page and while im not exprecienced with sql i assumed this query would work, i get a successful query message but the row isnt actually updated in my database table, is there a syntax error with this query or does that look alright?
Code:
$query="UPDATE `main` SET `title`='$title', `body`='$body', WHERE `id`='$articleid'";
mysql_query($query) or die('<p>Error, update query failed</p>');