[FX.php List] eerie happenings

Andy Gaunt andy at fmpug.com
Mon Jul 17 14:53:11 MDT 2006


David,

 

Try restarting your WPE.

 

This error can occur when communication with the FM Server is lost
(sometimes in the middle of a page that processes more than one query)

 

Andy Gaunt

Office: 321.206.3658

Mobile: 407.810.4722

andy at fmpug.com

http://www.fmpug.com    

 

Recipient of FileMaker's 2005 "Mad Dog" Public Relations Award

 

For chapter locations, dates & times please visit the website at
http://www.fmpug.com If you can make it to a meeting, please RSVP at
http://www.fmpug.com/rsvp.php

 

  _____  

From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of David Tinoco
Sent: Monday, July 17, 2006 4:48 PM
To: fx.php_list at mail.iviking.org
Subject: [FX.php List] eerie happenings

 

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.com


Fatal 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';
}
 




  _____  

Be one of the first to try Windows Live Mail beta
<http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-49
11fb2b2e6d> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060717/a68ea4a6/attachment-0001.html


More information about the FX.php_List mailing list