[FX.php List] eerie happenings

David Tinoco davet15 at hotmail.com
Mon Jul 17 14:47:48 MDT 2006


I have a basic shopping cart running with FX Cart and it has been working just fine. I tested it out again this morning and every time I do a search, I get this error now. I haven't changed anything that I know of. If anyone can help, I'd appreciate it!
 
Thanks,
David Tinoco
davet15 at hotmail.comFatal error: Cannot use object of type FX_Error as array in c:\Inetpub\wwwroot\search.php on line 27
 
the code:
 
<?php
session_start();include_once($_SERVER['DOCUMENT_ROOT'] . "/FX/FX.php");include_once($_SERVER['DOCUMENT_ROOT'] . "/FX/server_data.php");
$cats=new FX($serverIP,$webCompanionPort);$cats->SetDBData('Nutrina Catalog.fp7','Categories');$cats->SetDBPassword($webPW,$webUN);$cats->AddDBParam('Category','General');$catsResult=$cats->FMFind();
$special=new FX($serverIP,$webCompanionPort);$special->SetDBData('Nutrina Catalog.fp7','Categories');$special->SetDBPassword($webPW,$webUN);$special->AddDBParam('Category','Special');$specialResult=$special->FMFind();
if(isset($_POST['findbox'])){$search_term=$_POST['findbox'];
$products=new FX($serverIP,$webCompanionPort);$products->SetDBData('Nutrina Catalog.fp7','Catalog');$products->SetDBPassword($webPW,$webUN);$products->AddDBParam('Search',$search_term);$productsResult=$products->FMFind();foreach($productsResult['data']as $key=>$productsData);   (this is line 27 in wordpad)$foundcount = $catsResult['foundCount'];$searchcount = $productsResult['foundCount'];}if(isset($_GET['category'])){$cat=$_GET['category'];$products=new FX($serverIP,$webCompanionPort);$products->SetDBData('Nutrina Catalog.fp7','Catalog');$products->SetDBPassword($webPW,$webUN);$products->AddDBParam('Search',$cat);$productsResult=$products->FMFind();foreach($productsResult['data']as $key=>$productsData);$foundcount = $catsResult['foundCount'];$searchcount = $productsResult['foundCount'];}
if(isset($_GET['cat'])){$cat=$_GET['cat'];$products=new FX($serverIP,$webCompanionPort);$products->SetDBData('Nutrina Catalog.fp7','Catalog');$products->SetDBPassword($webPW,$webUN);$products->AddDBParam('Search',$cat);$productsResult=$products->FMFind();foreach($productsResult['data']as $key=>$productsData);$foundcount = $catsResult['foundCount'];$searchcount = $productsResult['foundCount'];}
if(isset($_SESSION['ordno'])){$totals=new FX($serverIP,$webCompanionPort);$totals->SetDBData('Nutrina Catalog.fp7','TempOrders');$totals->SetDBPassword($webPW,$webUN);$totals->AddDBParam('k_Session ID',$_SESSION['ordno']);$totalsResult=$totals->FMFind();foreach($totalsResult['data']as $key=>$totalsData);$items=$totalsData['Items'][0];$total=$totalsData['Order_Total'][0];}else{$items='0';$total='0.00';}
 

_________________________________________________________________
Try Live.com - your fast, personalized homepage with all the things you care about in one place.
http://www.live.com/getstarted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060717/5cdb836c/attachment.html


More information about the FX.php_List mailing list