How to connect blank html iframe into database

Sorry to ask this, Im new here, easy on me, and sorry for my bad english,
since I can’t add video from another video hosting beside ytube, vimeo, and fb, is that possible to use blank html iframe to connect to a database?, Im searching it but I didn’t find it, here is example my page


so, I want to use that blank html iframe page to connect into database, so I can add embed code more easy in database, is that possible?

Hi Turdliyah ,

To assign a URL to an iframe form database, you can use query to get that link form the dataset. Ex :

wixData.query("datasetName")
 .eq("title","pageName") // get the record where title = pageName 
  .find()
  .then( (results) => {
 $w("#html").src = results.items[0].url; //set the url of iframe(html)
  } )
  .catch( (err) => {
 let errorMsg = err;
  } );

for more information, please take a look at Wix-Data api

Hope this helps!
Best,

Mustafa