Adding YouTube iframe code via the admin

2 posts by 2 authors in: Forums > CMS Builder
Last Post: April 12, 2013   (RSS)

Hi Tina,

I don't think you should have to convert the characters into anything before you display them, it should be saved using the correct character set. The code you're currently using converts the charters into their HTML equivalent. For example the < character becomes &#60; 

I think you just need to display the data without converting it:

<?php echo $horses_for_saleRecord['youtube_embed_code'] ?>

if that doesn't work , you might have to decode the HTML characters into normal characters using the html_entity_decode function:

<?php echo html_entity_decode($horses_for_saleRecord['youtube_embed_code']) ?>

Let me know if you have any questions.

Thanks

Greg

Greg Thomas







PHP Programmer - interactivetools.com