[FX.php List] Container Field Display Only First Record

Josh Rodrigue josh at hcbl.com
Tue Jun 6 16:09:49 MDT 2006


Every Time i query the db it only returns first record for container,  
but correct data for other fields.  Here is the Code

<?php

include_once('FX/FX.php');
include_once('FX/server_data.php');
include_once('FX/image_proxy.php');

$companyrep  =new FX($serverIP,$webCompanionPort);
$companyrep -> SetDBData('xxx.fp7','xxx');
$companyrep -> SetDBPassword($webPW,$webUN);
$companyrep -> AddDBParam('Company_Name','='.$company);

$query = $_GET['query'];
$companyrepData = $companyrep->FMFind();
$currentKey = key($companyrepData['data']);

?>



   <p>This is the main site</p>
   <img src="FX/image_proxy.php?FXimage=<?php echo vignereEncryptURL 
($companyrepData['data'][$currentKey]['Company_Logo'][0]); ?>">
   <p><?php echo $companyrepData['data'][$currentKey] 
['Company_ContactName'][0]; ?></p>
   <p><?php echo $companyrepData['data'][$currentKey] 
['Company_PhoneNumber'][0]; ?></p>
    <p><?php echo $companyrepData['data'][$currentKey]['Company_Name'] 
[0]; ?></p>

Please Help,
Josh



More information about the FX.php_List mailing list