Link to external page has wordpress blog-url inside

First of all, you are using $rinter as a number and at the same time as an URL for the anchor element.

Secondly, the href attribute requires mentioning the protocol (http(s):// for example) in front of the domain or else it will just be relative to the current viewing address. ($rinter should be something like http://www.w3.org instead of just www.w3.org)