spacemonkey Posted April 30, 2008 Posted April 30, 2008 (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 April 30, 2008 by Guest
spacemonkey Posted May 9, 2008 Author Posted May 9, 2008 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" />'; }
Recommended Posts
This topic is 6302 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 accountSign in
Already have an account? Sign in here.
Sign In Now