How to get the URI to a theme without the domain. Example: /wp-content/themes/my-theme

Use parse_url(), because it exists exactly for that reason:

$path = parse_url( get_stylesheet_directory_uri(), PHP_URL_PATH );

Chris Cox’ solution will fail when the wp-content directory runs under a different domain than the rest of the site.

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