[FX.php List] pulling image from container field
Alex Gates
alex at gandrpublishing.com
Wed Aug 2 06:36:12 MDT 2006
One other thing I discovered is that when I try to copy and paste the
URL in my browser, using FireFox I get
"PHP has encountered an Access Violation at 019A904A"
Alex P. Gates
G&R Publishing Co.
507 Industrial Street
Waverly, IA 50677
Ph: 319-352-5391 x 319
-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Alex Gates
Sent: Wednesday, August 02, 2006 7:13 AM
To: 'FX.php Discussion List'
Subject: [FX.php List] pulling image from container field
Hi Everyone-
I spent some time searching this, but I haven't been able to get this to
work properly - - Any help would really be appreciated- -
I'm trying to pull a .jpg from a container field - (along with two other
text fields which both display properly)
The container field is called "Cover"
When I view my HTML source, I see an encrypted URL in my image tag
<img
src="FX/image_proxy.php?FXimage=r%DF%40%8B%A8%E0%8FJ%EF%82%D0S%B1%CA%C4%
A7%D7M%F1%9D%7EU%B4%AFhfK%E7%84%9A%AE%80%90%CCI%DC%5E8g3%82H%A8n%93%AD%2
6%88%A8%80g%99%EF%80%AD-%CAHX%BB%AE%99%9E%A6%B9%E5%AA%AF%AF%E0%D2%D8%D9"
>
Any suggestions?
Here is my code:
<?php
ob_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
include_once('FX/FX.php');
include_once('FX/server_data.php');
include_once('FX/FMErrors.php');
include_once('FX/image_proxy.php');
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<title>Cookbooks For Sale</title>
</head>
<?php
$lookup=new FX($serverIP,$webCompanionPort,'FMPro7');
$lookup->SetDBData('cbsale.fp7','cbsale');
$lookup->SetDBPassword('','admin');
$lookupResult=$lookup->FMFindAll();
$foundResult=$lookupResult['foundCount'];
echo $foundResult;
?>
<body>
<?php
foreach( $lookupResult['data'] as $key => $searchData ){
?>
<table width="200" border="1">
<tr>
<td height="192"><?php echo $searchData['Title'][0];
?>
</td>
</tr>
<tr>
<td height="167">
<?php
$cover="FX/image_proxy.php?FXimage=".vignereEncryptURL($searchData['Cove
r'][0]);
echo "<img src=\"".$cover."\">"; ?></td>
</tr>
<tr>
<td height="212"><?php echo $searchData['Contact'][0];
?></td>
</tr>
</table>
<?php
echo '<br>';
echo '<br>';
}
?>
</body>
</html>
Thanks, everyone...
Alex P. Gates
G&R Publishing Co.
507 Industrial Street
Waverly, IA 50677
Ph: 319-352-5391 x 319
_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list