I have post where it has a download button, and I want to save my download link in a row in my server. So in my site it loads the link in the button.
I made this:
<a href="'.$rows['link'].'" class="btn btn-primary col-lg-12 " role="button">Download</a>
Links open locally if they don't have "http://" at the beginning, so just add it to all your links :
▼ <a href='http://" . $rows['link'] . "' class="btn btn-primary" role="button">Download</a>