Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted (edited)

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

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" />';

	}

This topic is 6033 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.