I've been wrestling with this for several hours now. Searched google and stackoverflow. Not getting anywhere. I'm trying to access a youtube watch id from a database, and insert it into an embed. No errors. $con is fine. Accessing the table is fine. My sql query works in phpmyadmin. The embed video shows, but doesn't have a watch idea, so it just gives fuzz when you press play. I'm out of ideas. Please help, and thank you very much.
Here is my php.
$sqlVideo = "SELECT watchid FROM video WHERE id = 1;";
if ($resultVideo = mysqli_query($con, $sqlVideo))
{
while($row = mysqli_fetch_assoc($resultVideo))
{
echo '<embed width="560" height="315" src="//www.youtube.com/embed/'.$row['watchid'].'? autoplay=1" frameborder="0" allowfullscreen></embed>';
}
}