Can anyone help me tie these two together?

So in this page I am developing, after an animation plays, there is a “Specials” section in the center of the page that loads 3 random items from a database. Each item is different and has a corresponding title, prices, and an image. The php was not written by me but I do have some understanding of it. (it might help if you knew: I am the designer/animator. Our dev team in another country handles the php).

In the first part I’ve got it working great, however the images need to be resized when loaded. Right now they just load into a dynamic text box at whatever size they are.(really large). In the second part of code, I’ve been testing, loading an image into a movie clip. I’ve got this working to where it loads and resizes an image. But it just loads an image from a URL not the php. What I would like is for the image to correspond to the title being loaded by the php. I need to tie these two together.

here’s the url to the test site so you can see what it’s doing:
http://www.iqbalsolutions.com/UAC/index.php

CODE PT. 1:
////////////SPECIALS \\\\\\\\\

myVars = new LoadVars();
myVars.load(“getProducts.php”);

myVars.onLoad=function(){
sp_title1_txt.text = this.item1_title;
sp_LP1_txt.text = this.item1_listPrice;
sp_OP1_txt.text = this.item1_ourPrice;
sp_image1.loadMovie(this.item1_image);

    sp_title2_txt.text = this.item2_title;
    sp_LP2_txt.text = this.item2_listPrice;
    sp_OP2_txt.text = this.item2_ourPrice;

sp_image2.loadMovie(this.item2_image);

    sp_title3_txt.text = this.item3_title;
    sp_LP3_txt.text = this.item3_listPrice;
    sp_OP3_txt.text = this.item3_ourPrice;

sp_image3.loadMovie(this.item3_image);

}

CODE PART 2:
var thisWidth:Number;
var thisHeight:Number;
var maximumHeight:Number;//height to which movieclip to be resized
var maximumWidth:Number;//width to which movieclip to be resized
var oldx:Number;
var oldy:Number;
var ratio:Number;
var mclis:Object = new Object();

mclis.onLoadInit = function(target_mc:MovieClip) {
_root.thisHeight = target_mc._height;//loaded movieclip height
_root.maximumHeight = 85;
_root.thisWidth = target_mc._width;//loaded movieclip width
_root.maximumWidth = 85;
ratio = thisHeight/thisWidth;//calculation ratio to which resize takes place

if (thisWidth>maximumWidth) {
thisWidth = maximumWidth;
thisHeight = Math.round(thisWidth*ratio);
}
if (thisHeight>maximumHeight) {
thisHeight = maximumHeight;
thisWidth = Math.round(thisHeight/ratio);
}
target_mc._width = thisWidth;//applying new width
target_mc._height = thisHeight;//applying new height
target_mc._x = 100;
target_mc._y = 100;
};
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(mclis);//add the object as listener for event handlers
_root.createEmptyMovieClip(“holder_mc”, _root.getNextHighestDepth());//holder movieclip
_root.mcl.loadClip(“http://www.myURL.com/apl1500.jpg”, _root.holder_mc);