Results 1 to 2 of 2
  1. #1
    Affiliate/AM Moonlighter dflsports's Avatar
    Join Date
    January 17th, 2005
    Posts
    874
    removing img tag info
    hi!

    I am trying to import some data and the image field has the image tags present.

    I can do this bit of code

    $product["THUMB"] = str_replace("<img border=0 width=50 height=50 src=","",$product["THUMB"]);
    $product["THUMB"] = str_replace(">","",$product["THUMB"]);


    But if the width and height are not = 50 then it does not get replaced. Anyone know how I can strip out the tag info leaving just the url?

    Thanks!

  2. #2
    Affiliate/AM Moonlighter dflsports's Avatar
    Join Date
    January 17th, 2005
    Posts
    874
    I finally figured this one out too

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Html img tag src dynamic page
    By likemynick in forum Programming / Datafeeds / Tools
    Replies: 3
    Last Post: July 12th, 2006, 11:25 AM
  2. removing " in a text field with replace tag
    By epicadventures in forum WebMerge (Fourthworld.com)
    Replies: 13
    Last Post: February 23rd, 2004, 06:44 PM
  3. CJ removing chargeback info
    By SSanf in forum Commission Junction - CJ
    Replies: 83
    Last Post: April 16th, 2003, 02:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •