in this code i am using i can link to an image and there are two spots that are for text. i dont need the text spots “comment” or “title”. what i do need is the image and here is the problem. i would like to have the image click to a url. i guess i need to by able to attach a link to the image. here is the xml
the reason i was using xml is so that the client could change the image names that get put into the flash file and also so they could change the link. it does not need to be xml, just some sort of system that will allow these things to happen.
or just view them on a php page and link the title to the images
lookupstuff.php
<html>
<head>
<title>:: Look Up Stuff ::</title></head>
<body>
<?php
// set up some variables
// server name
$server = "";
// username
$user = "";
// password
$pass = "";
// database to query
$db = ""; // make sure you change this to your database name
// open a connection to the database
$connection = mysql_connect($server, $user, $pass) or
die("Invalid server or user");
// formulate the SQL query
$query = "select * from file_uploader" or die("Error in query");
// run the query on the database
$result = mysql_db_query($db, $query, $connection) or
die("Error in query");
// display the result
while($myrow = mysql_fetch_array($result))
{
$id = $myrow["file_id"];
$dir = $myrow["file_directory"];
$de = $myrow["file_description"];
?>
<br>
<a href="<?php echo $dir; ?>">Your Image</a><br>
<?php
echo $de; ?><br><?php
}
// memory flush
mysql_free_result($result);
?>
<br>
<br>
These are the files that were uploaded to the web server through the form. Only the first 2 files show in flash.<a href="viewImages.php"><b><br>
View Flash Page</b></a>
</body>
</html>
Unfortunaly i destroyed the database so i dont have the sql file. hope that helps