[FX.php List] Displaying container data

Bob Patin bob at patin.com
Sun Feb 22 12:08:00 MST 2009


I've almost never used containers with FX work, but I need it for this  
project, so I'm forced to revisit it.

Here's my code:


include_once('FX/FX.php');
include_once('FX/server_data.php');
require_once('FX/image_proxy.php');

$query2 =new FX($serverIP,$webCompanionPort, $dataType, $scheme);
$query2->SetDBData($dbname,'web_prefs',1);
$query2->SetDBPassword($webpw,$webun);
$query2Result = $query2->FMFindAll();
foreach($query2Result['data'] as $key=>$query2Data);
$logo="FX/image_proxy.php? 
FXimage=".vignereEncryptURL($query2Data['cont_logo'][0]);
echo $logo;

Here's what gets echoed:

FX/image_proxy.php?FXimage=%C5%9B0z%CCI%A9%7C%B8%AE%B3%E11%EF%8COX 
%EF2yy%EDt%E4%C4%C0%F6%D1.Q%CFuG%9E%8D%CF%DAw_wS%B3%A0%EB 
%C9%E2%E1%81%B9%AA%3C%B1%84%D7Z%DAY%BD%D2%AE%BB%B7%D6%B3V%F3%CA%CE 
%82%DD%5B%D7%F3c%7B%9F%C9%93%EFp%F8%A5%EF%904%FB

Instead of just an image, I'm seeing the actual PHP, which makes me  
think there's something not quite right here...

Container field is called "cont_logo", and it IS on the layout. If I  
echo back another field (a regular data field) it comes back fine.

Any thoughts?

Thanks,

Bob Patin
Longterm Solutions LLC
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
Twitter: bobpatin
iChat/AIM: bobpatin
FileMaker 9 Certified Developer
Member of FileMaker Business Alliance & TechNet
--------------------------
FileMaker hosting and consulting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090222/ad0e544a/attachment.html


More information about the FX.php_List mailing list