echo '<a href="'. $site_url .'" onclick=" window.open('. $refferal_url .'); ">';
results
<a href="http://example.com/" onclick=" window.open(http://example.com/some-url/); ">
The problem is i can't get to put single quote before and after http://example.com/some-url/
because i always get the error.
How can i do this?