Obtain page data and use regular loop

You need to use setup_postdata().

$post = get_post( $id );
setup_postdata( $post );

if(! empty( $post ) ){
  the_title(); 
  echo '<br>';
  the_content();
}
else {
  echo "No page found matching ID $id";
}

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