bluesauceuk
Programmer
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
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>