Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Display Container Field Data

Featured Replies

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.

Try this:

localhost<?php echo $companyrepData['dat

Good Luck.

Garry

  • Author

Garry,

Using that code it produces no image at all. With the code I currently have it always produces the first record no matter who I login with.

Josh

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...

Look at this page is this what you are trying to accomplish.

http://fmwebschool.com/mpetrov/file_manager.php

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...

Venue Information

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

192.168.100.5 <?php echo $show_found_ven

  • 2 weeks later...

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

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

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...

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...

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.