/ Set a variable to your image directory. /
$image_directory = 'http://www.notjustball.com/images/';
/ Now log onto your database and grab the image you are want to tack onto the the directory url. /
/ Configure the login information /
$dbhost= "www.yourhost.com";
$dbuser= "your_username";
$dbpass= "your_username";
$dbname= "your_database";
/ Try to connect to database /
mysql_connect( "$dbhost", "$dbuser", "$dbpass") or
die ( "Unable to connect to database server...");
/ Select database /
mysql_select_db( "$dbname" ) or
die ( "Unable to select database...");
/ Select everthing from the table that you need /
$result=mysql_query(" SELECT * FROM images WHERE img='$img' ");
/ Set you result to a variable /
while ($row=mysql_fetch_array($result)){
$image1 = $row['image1'];
/ Now you have your database result and your image directory. Now combine them with . sign. /
$result = $image_directory . $image1;
This Should be it!
-Mark