ÖNCE SQL YEDEĞİ MUTLAKA ALIN..
$sorgu2=mysql_query("update from wp_posts set post_title=$postyeni where post_id=$postid ");
üstteki kodu değiştirin alttakiyle
$sorgu2=mysql_query("update wp_posts set post_title=$postyeni where post_id=$postid ");
Yine aynı hatayı verir üstad. set ibaresinden sonra tek tırnak kullanmak gerekir.
$sorgu2=mysql_query("update wp_posts set post_title='$postyeni' where post_id='$postid' ");