[FX.php List] Container Field Display Only First Record
Chris Hansen
chris at iViking.org
Wed Jun 7 15:23:00 MDT 2006
Josh,
The code that you've sent looks like it's designed to only display a
single record. Is there a loop in your main page that you're not
displaying? Or are you saying that the container always returns the
first image in the database? Best,
Chris Hansen
Application Developer
The Moyer Group
chansen at moyergroup.com
http://www.moyergroup.com/
-
Creator of FX.php
"The best way from FileMaker to the Web."
http://www.iViking.org/
-
FileMaker 7 Certified Developer
On Jun 6, 2006, at 4:09 PM, Josh Rodrigue wrote:
> 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
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
More information about the FX.php_List
mailing list