Modifying the Search Results

add_filter( 'pre_get_posts', '__filter_pre_get_posts' );
function __filter_pre_get_posts( $query ) {

    // this is to detect a public search query 
    if ( ! is_admin() && $query->is_search ) {

        // DO your magic here...

    }
}

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