[FX.php List] FMFindAll (or not!)
Roger Price
rp272 at cam.ac.uk
Tue May 8 05:34:08 MDT 2007
I have the following FX.php request in a web page:
$dbArchiveEvents = 'events.fp7';
$layArchiveEvents = 'web';
$ArchiveEventsQuery = new FX($serverIP, $webCompanionPort, $dataSourceType);$ArchiveEventsQuery->SetDBData($dbArchiveEvents, $layArchiveEvents);
$ArchiveEventsQuery->setDBUserPass($webUN);
$ArchiveEventsData = $ArchiveEventsQuery->FMFindAll();
it returns the following when I do:
'print_r($ArchiveEventsData);
fx_error Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => 100 [message] => FX: ExecuteQuery XML error: no element found at line 3 [userinfo] => [backtrace] => Array ( [0] => Array ( [file] => /var/htdocs/FX/FX.php [line] => 1362 [function] => fx_error [class] => fx_error [type] => -> [args] => Array ( [0] => ExecuteQuery XML error: no element found at line 3 ) ) [1] => Array ( [file] => /var/htdocs/FX/FX.php [line] => 1529 [function] => executequery [class] => fx [type] => -> [args] => Array ( [0] => -findall ) ) [2] => Array ( [file] => /var/htdocs/FX/FX.php [line] => 1758 [function] => fmaction [class] => fx [type] => -> [args] => Array ( [0] => -findall [1] => 1 [2] => full [3] => 1 ) ) [3] => Array ( [file] => /var/htdocs/events/archive/results/index.html [line] => 59 [function] => fmfindall [class] => fx [type] => -> [args] => Array ( ) ) ) [callback] => )
It suggests a missing element at line 3, but line 3 of what? However If I execute a find using a specific field name and value then the record is returned.
I've tried 'fooling' it by searching for a numeric field value >=0 but returns the same as 'FMFindAll'
Any suggestions would be appreciated.
Roger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070508/b67c5c30/attachment-0001.html
More information about the FX.php_List
mailing list