Permalink breaks record display of linked table

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: July 16, 2013   (RSS)

By gregThomas - July 11, 2013

Hi jjem,

It looks as if the red highlighting hasn't appeared on the second code section of your post. Would it be possible to post it again with the item highlighted in red?

Cheers

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By gregThomas - July 16, 2013

Hi jjem,

What errors are you getting when the page loads? What happens if you use the showme function on the $editeursRecord:

<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
$libraryPath = 'cmsAdmin/lib/viewer_functions.php';
$dirsToCheck = array('/chroot/home/jfzbinde/jfzbinden.ch/html/','','../','../../','../../../');
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }
list($oeuvresRecords, $oeuvresMetaData) = getRecords(array(
'tableName' => 'oeuvres',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$oeuvresRecord = @$oeuvresRecords[0];
if (!$oeuvresRecord) { dieWith404("Record not found!"); }
?> 
<?php list($editeursRecord) = getRecords(array( 
'tableName' => 'editeurs', 
'where' => "num = '{$oeuvresRecord['editeur']}'", 
'limit' => '1', 
)); 
$editeursRecord = @$editeursRecord[0]; // get first record

showme($editeursRecord);
exit;

?> 

Please could you paste what is output from this code into a post for me?

If you run this code it will return an array of the items that are in the $editeursRecord if it has been created. This will allow me to see why the variables aren't appearing on the page.

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com