PDA

View Full Version : Images in a database


pcrowley
06-08-2007, 11:01 PM
I have my images in a database and I'm trying to configure the FPP to load a strip from the database. I have unsuccessfully tried the following options.

Option 1
var so = new SWFObject('/pano/panoStripe.swf', 'pano', '100%', '100%', '6.0.65', '#A34020');
so.addVariable("panoName", "images/getpic.php?idx=30");
so.addVariable("panoSuffixes", "");
Option 2
<panorama>
<parameters>
panoName = images/getpic.php?idx=30
panoSuffixes =
Option 3
<panorama>
<parameters>
panoName = "images/getpic.php?idx=30"
panoSuffixes =
Option 4 ???

I'm lost. :( How can I get this to work? BTW, "images/getpic.php?idx=30" downloads a jpeg image.

Thanks,
Peter

pcrowley
06-10-2007, 04:45 AM
Okay, reading that message again today, it didn't make much sense to me, so I'm sure it didn't make a lot of sense to anyone else. Basically I ran into the problem of wanting to use a variable URL to get my images, such as http://www.domain.com/getpic.php?pic=25 which would download a jpeg image. However, it appears that this is the same way that FPP references the URL, so it gets confused, such as http://www.domain.com/pano.swf?panoName=getpic.php?pic=25 the problem being that the questio0n mark "?" shows up twice and makes this an invalid URL.

I was trying to find a way around this problem in the XML file, but in the end I fixed it by saving the picture's database number as a session variable.

Anyway, it works for me now.

-Peter