# Help - getting images in text area from databse

**URL:** <https://forum.kirupa.com/t/help-getting-images-in-text-area-from-databse/192242>\
**Category:** Uncategorized\
**Created:** [June 27, 2006, 6:38am UTC](https://forum.kirupa.com/t/help-getting-images-in-text-area-from-databse/192242 "2006-06-27T06:38:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noornadaf](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@noornadaf](https://forum.kirupa.com/u/noornadaf)\
**Post date:** [June 27, 2006, 6:38am UTC](https://forum.kirupa.com/t/help-getting-images-in-text-area-from-databse/192242/1 "2006-06-27T06:38:37Z")

</div>

hi can some one help me to get solution for this problem

i am making one small cms system which is updating flash content , everything is done and working properly but image tag is not getting display in text area ( image is not comming in text area ) following is the coding

## **for flash ( in first frame )**

loadVarsText = new LoadVars();  
loadVarsText.load(“admin/display.php?pagename=aboutus”);  
loadVarsText.onLoad = function(success) {  
if (success) {  
trace(“done loading”);  
\_root.az.scroller.htmlText = this.content1;  
} else {  
trace(“not loaded”);  
}  
};  
/////////////////////////////////////////////////////////////////////////////////////////////

**coding in display.php**

\<?php  
include"connect.php";  
$qry=“select \* from content where pagename =’$pagename’”;  
$res = mysql\_query($qry) or die($qry.mysql\_error());  
$res\_arr = mysql\_fetch\_array($res);  
$content = $res\_arr[“contents”];  
//print “content1=$content”;  
echo “content1=$content”;  
?\>  
///////////////////////////////////////////////////////////////////////////////////////

now its working perfect its showing perfect html content in flash even its going well in databse but in text area of falsh its not showing the image or image tag , i do have one solution  
if we give value in flash itself then its shoing but its not showing when variable coming from db

following is code for this

myTextField.htmlText = ‘\<img src="[[COLOR=#0000ff]http://designerden.net/images/logo.jpg"[/COLOR]](http://designerden.net/images/logo.jpg) width=“168” height=“42” border=“0”\>’;

this works but its not work if variable coming from db

* * *

HELP ME OUT PLEASE
