I have a simple upload script to allow my buddies to upload their youtube videos to their website. It works great offline (WAMPP), but online for some reason it does not work right. Whenever I upload the iframe code, it adds ''s to it. any advice would be greatly appreciated. Example:
When I upload this:
This is what it looks like when it hits the DB: <iframe width=“560” height=“315” src=“http://www.youtube.com/embed/tzD9BkXGJ1M” frameborder=“0” allowfullscreen>
this is my insert script:
<?php include 'core/init.php'; protect_page(); header("Location:featured_videos_admin.php"); $_link = mysql_real_escape_string($_POST['link']); $sql="INSERT INTO `videos` SET `link`='$_link'"; if (!mysql_query($sql)) { die('Error: ' . mysql_error()); } mysql_close($con); ?>