# Loading image with text from mysql using php into flash

**URL:** <https://forum.kirupa.com/t/loading-image-with-text-from-mysql-using-php-into-flash/243164>\
**Category:** Uncategorized\
**Created:** [November 3, 2007, 5:52pm UTC](https://forum.kirupa.com/t/loading-image-with-text-from-mysql-using-php-into-flash/243164 "2007-11-03T17:52:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Novate](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@Novate](https://forum.kirupa.com/u/Novate)\
**Post date:** [November 3, 2007, 5:52pm UTC](https://forum.kirupa.com/t/loading-image-with-text-from-mysql-using-php-into-flash/243164/1 "2007-11-03T17:52:52Z")

</div>

loading the text from database into flash with help of **xml**

everything works but its only the text, how could i load an image together with text?

this is the **php** code that i use to load the text:  
[COLOR=Blue]  
\<?PHP

$link = mysql\_connect(“localhost”,“lee”,“password”);  
mysql\_select\_db(“brimelow\_store”);

$query = ‘SELECT \* FROM products’;  
$results = mysql\_query($query);

echo "\<?xml version=“1.0”?\>  
";  
echo "\<products\>  
";

while($line = mysql\_fetch\_assoc($results)) {  
echo “\<item\>” . $line[“product”] . "\</item\>  
";  
}

echo "\</products\>  
";

mysql\_close($link);

?\>

[COLOR=Black]how could i load an image together with this text from mysql database?

any help would be really appreciated  
[/COLOR] [/COLOR]
