This topic is locked

AJAX search problem

6/17/2008 5:59:05 PM
PHPRunner General questions
F
Fawaz author

Hi,

I am using Before SQL Query even in the List page to filter the result using the following code:

$strSQL = AddWhere($strSQL,"Office.id ='".$_SESSION["OfficeID"]."'");


And it is working fine.
However, the search form in List page, which is AJAX enabled, showes results belong to other offices.
How do I hide the results from other offices, which appears in the AJAX search?
Thanks,

Fawaz

J
Jane 6/18/2008

Fawaz,
you need to edit SQL query in the generated ..._searchsuggest.php file for this purpose.