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!

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.