I try to make my button open a link on a new page this link is stored in the database i have done the button to open the link but on the same page and i need to open it a new page. i have tried to insert but continue to open on the same page. This is my code
<button type="button" onclick="location.href='<?php echo $data['link']; ?>'" target="_black" class="w-100 btn btn-lg btn-primary">View To Win The Credits</button>