I have the following: Youtube embed code:
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/nqNp9TgnXHk" allowfullscreen=""></iframe>
I have a table where I store the youtube "nqNp9TgnXHk" part of the embed code.
id- type is integer,tube_code- type is varchar ("where I store the embed nqNp9TgnXHk")
Using PHP how do I echo the string:
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/.$tube_code. allowfullscreen=""></iframe>
...so that I can insert and retrieve it from the ḾySQL table?
Try something like this:
... where
xyzis the id of the stored youtube id.