Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6734 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I can access the db but it always displays first record in container field. All other fields display correct data.

Code:

<?php

session_start();

include_once('includes/verify_login.php');

include_once('FX/FX.php');

include_once('FX/server_data.php');

require_once('FX/image_proxy.php');

$company = $_SESSION['company'];

$companyrep =new FX($serverIP,$webCompanionPort);

$companyrep -> SetDBData('xxx.fp7','xxx');

$companyrep -> SetDBPassword($webPW,$webUN);

$companyrep -> AddDBParam('Company_Name','='.$company);

$query = $_GET['query'];

$companyrepData = $companyrep->FMFind();

$currentKey = key($companyrepData['data']);

?>

image_proxy.php?FXimage=<?php echo vigne

Doesn't Work

<?php echo $companyrepData['data'][$currentKey]['Company_ContactName'][0]; ?>

Works

Any help would be greatly appreciated.

Posted

Did you replace "localhost" with the address of your server. You can also check the rendered html in the page to check if the path to the database is correct.

I've seen the same thing happening with the previous code; i.e. the first image showing for all records.

All the best.

Garry

  • 4 weeks later...
Posted

This is where I add my once every 6 months whine about there needing to be a better solution for displaying container fields (ie image proxy).

  • 2 weeks later...
  • 2 weeks later...
Posted

Steven,

It worked for us with the image stored in the Container field.

The table should resize ok to fit the image.

The IP address would the same as the one in "server_data.php".

I believe it should be an issue for FM Inc. as this is not an isolated problem.

I guess you have attempted the standard code:

image_proxy.php?FXimage=<?php echo vigne

Good Luck.

Garry

Posted

Hi Garry,

I abandoned use of Container fields and solved the problem as follows:

<? echo $show_found_venueData['Venue_Map_URL'][0]; ?>

In the database field 'Venue_Map_URL' I have quoted the image file path and name as follows:

Sydneybig.jpg

All the referenced maps are stored in the Graphics folder on the web server.

Thanks for your help and yes FM need to look at this issue.

Cheers,

Steven

Posted

One thing you could try to improve what you have is:

Store the url in a field "imageurl" in your database.

Then your code is:

img scr=<? echo $show_found_venueData['imageurl'][0]; ?> >

You would store all images in your Graphics Folder.

  • 3 weeks later...
Posted

Remember one important thing - if you want to get image proxy working you need to run the echo_key to get the security key.

Next copy and paste that security key into your image proxy file.

Then the standard image_proxy code should work...

This topic is 6734 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.