Jump to content

'Search' feature using PHP not working...Need help!


ready2drum

Recommended Posts

The PHP code that I have put together is supposed to allow users on the ability to 'search' for a specific file related to their department, but instead, it's giving an error message after entering an item and clicking on the 'search' button....

 

Error message reads as follows:

Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> CreateRecordset<br/><b>Description:</b> There is no catalog. ' in E:\Inetpub\wwwroot\Intranet_Old\intranet\jha\jha_doc_results.php:66 Stack trace: #0 E:\Inetpub\wwwroot\Intranet_Old\intranet\jha\jha_doc_results.php(66): com->CreateRecordSet('nonsequential') #1 {main} thrown in E:\Inetpub\wwwroot\Intranet_Old\intranet\jha\jha_doc_results.php on line 66

---------

 

PHP code reads:

<?php

$Q = new COM("ixsso.Query");

$util = new COM("ixsso.util");

$Q->Catalog = "E:\GROUP\BIWeb\jha";

$Q->Query = $_POST['query'];

$Q->Columns = "filename, rank, vpath, path, DocTitle, characterization, All";

$Q->SortBy = "rank[d]";

$Q->MaxRecords = 200;

(line 66)  $fileRS = $Q->CreateRecordSet("nonsequential");

if(!$fileRS->RecordCount == 0) {

$fileRS->MoveFirst();

}

while($i < $fileRS->RecordCount){

}

?>

----------

has anyone ever run across this type of error and if so, what am I missing in order to resolve this error?  If you need more information, please let me know, as I really want to fix this before the day is over.

 

Thanks in advance!

 

 

additional information...using IXSSO query within PHP to display the results of a 'search' function...not sure how to set the 'query property' for line 66 so that this will work. I've seached on Google.com as well for further assistance without success.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.