This is my code for a website that displays videos from a MySQL database. \'videoRef\' is the YouTube embed code that is stored in a video table.
$result=mysqli_q
The possible solutions:
<a href="https://www.youtube.com/embed/".$data['videoRef']><iframe>...</iframe></a>
<a href="https://www.youtube.com/watch?v=".$data['videoRef']><iframe>...</iframe></a>