> UPDATE newspost SET postdate = '$postdate', posttitle = '$posttitle', postbody > = '$postbody', poststatus = '$poststatus' WHERE (postid = '$postid') that looks okay, except for two things is postid numeric does any of the other fields contain a single quote rudy