April 30, 200817 yr 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 April 30, 200817 yr by Guest
May 9, 200817 yr 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