3rdeye
September 12th, 2004, 01:56 AM
I'm sending a series of integers from Flash using sendAndLoad, simmilar to:
infoSend.imageTotal = 3
infoSend.imageNum1 = 435
infoSend.imageNum2 = 45
infoSend.imageNum3 = 9
infoSend.sendAndLoad("http..", infoLoad, "POST");
my question is, how do I parse the data on the PHP side?
right now I have a while loop
while( $i <= $imageTotal){
$tempID = $imageNum[$i];
$result = mysql_query('SELECT * FROM tbl_mov WHERE movID='.$tempID.'',$dbcnx);
$data = mysql_fetch_array($result);
$str = $data['img_thumb'];
echo '&imgID='.$i;
echo '&imgLoc='.$str;
$i++;
};
the line in red is the only one I know isn't working... anyone know how to structure it?
infoSend.imageTotal = 3
infoSend.imageNum1 = 435
infoSend.imageNum2 = 45
infoSend.imageNum3 = 9
infoSend.sendAndLoad("http..", infoLoad, "POST");
my question is, how do I parse the data on the PHP side?
right now I have a while loop
while( $i <= $imageTotal){
$tempID = $imageNum[$i];
$result = mysql_query('SELECT * FROM tbl_mov WHERE movID='.$tempID.'',$dbcnx);
$data = mysql_fetch_array($result);
$str = $data['img_thumb'];
echo '&imgID='.$i;
echo '&imgLoc='.$str;
$i++;
};
the line in red is the only one I know isn't working... anyone know how to structure it?