ready2drum Posted August 12, 2009 Share Posted August 12, 2009 I recently had moved files from one server to another and now when I'm performing a 'Search' on a web page, the following error message appears: -------------- Notice: Undefined index: query in E:\Inetpub\wwwroot\Intranet_Old\intranet\jha\jha_doc_results.php on line 62 Fatal error: Uncaught exception 'com_exception' with message 'Parameter 0: Type mismatch. ' in E:\Inetpub\wwwroot\Intranet_Old\intranet\jha\jha_doc_results.php:62 Stack trace: #0 E:\Inetpub\wwwroot\Intranet_Old\intranet\jha\jha_doc_results.php(62): unknown() #1 {main} thrown in E:\Inetpub\wwwroot\Intranet_Old\intranet\jha\jha_doc_results.php on line 62 -------------- Below is the code showing 'line 62'... --- <?php LIne 59 $Q = new COM("ixsso.Query"); Line 60 $util = new COM("ixsso.util"); Line 61 $Q->Catalog = "E:\GROUP\BIWeb\jha"; Line 62 $Q->Query = $_POST['query']; $Q->Columns = "filename, rank, vpath, path, DocTitle, characterization, All"; $Q->SortBy = "rank[d]"; $Q->MaxRecords = 200; $fileRS = $Q->CreateRecordSet("nonsequential"); if(!$fileRS->RecordCount == 0) { $fileRS->MoveFirst(); } while($i < $fileRS->RecordCount) { ?> --- Not sure how to resolve this after searching the Forum for similar/related issues... Your help is greatly appreciated...thanks in advance! Link to comment https://forums.phpfreaks.com/topic/169916-error-when-performing-a-search/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.