This is what I copy:
<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=US&source=ss&ref=ss_til&ad_type=product_link&tracking_id=campscorne-20&marketplace=amazon®ion=US&placement=B003OBFECG&asins=B003OBFECG&linkId=5WI3CSFCGAHXL2LR&show_border=true&link_opens_in_new_window=true">
</iframe>
I save it after setting that to a variable by:
mysql_query("INSERT INTO weblinks (catid, title, url, description, ordering, published) VALUES ('$catid', '$title', '$url', '$description', '$ordering', '$published') ");
After reading it from the database I send it to the page by:
echo nl2br($description), "\n";
This is what it is changed to:
<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" src="//ws-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=US&source=ss&ref=ss_til&ad_type=product_link&tracking_id=campscorne-20&marketplace=amazon&region=US&placement=B003OBFECG&asins=B003OBFECG&linkId=B6DCXYDKWI7NLMVZ&show_border=true&link_opens_in_new_window=true" frameborder="0"><br />
</iframe>