If ‘editor’ is empty, then

I’m using something of the sorts for delivering some standard default text if the post content is empty. Give this a whirl:

<?php if( $post->post_content != "" ) {
    //do something or show content
} else {
    //do something else
}?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)