[FX.php List] Using an image in a container
Laura Long
laural at ultimate-products.com
Thu Apr 20 12:39:06 MDT 2006
I ran the "echo_new_key.php" file in the fx folder and got my encrypted
key. I copied and pasted that into the image_proxy.php file.
In my actual php page I have the following code:
<?php
require_once('FX/image_proxy.php');
include_once('FX/FX.php');
include_once('FX/server_data.php');
include_once('FX/FMErrors.php');
$logo=new FX($serverIP,$webCompanionPort,'FMPro7');
$logo->SetDBData('myDatabase.fp7',myLayout);
$logo->SetDBPassword('password','myPassword');
$logo->AddDBParam('idCompany',$_SESSION['idCompany']);
$logoResult=$logo->FMFind();
foreach($logoResult['data'] as $key=>$logoData){
$clientLogo="fx/image_proxy.php?FXuser={$FXE_username}&FXpass={$FXE_pass
word}&FXimage=" . vignereEncryptURL($logoResult);
echo "<img src=\"" . $clientLogo."\">";
echo $logo;
}
?>
The graphic comes up as a red X (no image found), and the view source
gives me the following:
<p align="center"><img
src="fx/image_proxy.php?FXuser=&FXpass=&FXimage=%CC%FB%27%F5%9E">Object
id #2</p>
I put the echo $logo; statement in just to see what it would print, that
is where the Object id#2 is coming from. Anyway, my question is, does
anyone know if I missed something? I did not set a value to FXuser or
FXpass, do I need to, and if so, what would go there?
Any insight or help to get my images in the container field to render
would be much appreciated - oh, and just to avoid the obvious, I would
prefer to not use a path to the image in this case, I would like to have
the image render directly from the container field - thanks again :)
Laura Long
Database/Web Designer
Workplace Options, Inc.
(919) 834-6506
<http://www.workplaceoptions.com/> http://www.workplaceoptions.com
-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of
gerry.charest at agfa.com
Sent: Thursday, April 20, 2006 1:36 PM
To: 'FX.php Discussion List'
Subject: [FX.php List] FX Query related Value
Is it possible to use a related field in a query? If so what is the
proper syntax for the related field?
Gerry Charest
Agfa Corporation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060420/f617f10c/attachment-0001.html
More information about the FX.php_List
mailing list