Display post content with respect to its title?

if (strpos($post->post_title,'string_it_needs_to_match') === true){
echo the_content();

}

to explain

strpos – method of comparing strings

=== makes sure strings are identical

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