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.

Displaying Related Images

Featured Replies

I am having some trouble displaying related images. The path information does not appear to be being passed as the images just display as a broken image icon in Firefox. The database server is running FMSA 9r3 and PHP v.5.2.4.

In my details page I have the following code:


$pix = $record->getRelatedSet('ImageLib');



foreach ($pix as $pic) {

	$detail .= '

[*]getField('ImageLib::myPicture')).'" style="width: 80px; height: 80px" />';

	}



The getimp.php which works in every other instance is:


<?php session_start();

require_once('include/db.inc.php');



echo $dbConnection->getContainerData($_GET['path']);



?>


... and the images are displayed using the following html:


<?php echo $detail; ?>

I presume that $_GET['image'] is just a placeholder as is $_GET['recid']?

Any help would be appreciated.

Edited by Guest

  • 2 weeks later...
  • Author

The following replacement code for code given in the first section of code is that which resolved this issue:

$pix = $record->getRelatedSet('ImageLib');



foreach ($pix as $pic) {

	$detail .= '

[*]getField('ImageLib::myPicture')).'" style="width: 80px; height: 80px" />';

	}

Create an account or sign in to comment

Important Information

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

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.