Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a floating image to a Memo Field

Status
Not open for further replies.

bluesauceuk

Programmer
Jan 1, 2001
73
GB
Hello,

I have a memo field in my database - but sometimes I need to show a small image.. I have it all working although the image is always at the top.

Is there anyway to say put it at the start of the third paragraph.

All the data in body is in html, and contains <p> and </p>

I guess I would need to make the html table, into a text string and then replace, the third occrance of <p>.

Does anyone know how to do this?

Cheers


Code:
     <cfoutput query="show" maxrows="1">	
              <!--- inline --->
              <cfif show.inline eq "yes">
                <table width="#show.inlinewidth#" border="0" align="right" cellpadding="0" cellspacing="2">
                  <tr> 
                    <td><img name="inline" src="/uploads/#show.inlinefile#" width="#show.inlinewidth#" height="#show.inlineheight#"> 
                    </td>
                  </tr>
                </table>
              </cfif>
			  #show.body# 
			  </cfoutput>
 
i do something similar but the way it works is like the forums markup. [imageToPlaceHere] that gives the user the option to place the image anywhere they want.



A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
-Douglas Adams (1952-2001)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top