J
|
Jane 1/8/2007 |
Hi, |
P
|
ploppy author 1/8/2007 |
hi jane. thanks for reply. I have done that. That option only disables the list being displayed when the page loads. I am sure there is some code that can be inserted to display no records found if the customer inputs no query? in my case, i need a user to search for there results and not just press the search button and have all results displayed. Thanks. peter |
J
|
Jane 1/9/2007 |
Hi, if(postvalue("SearchFor")!="" || postvalue("SearchOption")=='Empty') $_SESSION[$strTableName."_search"]=1; else $_SESSION[$strTableName."_search"]=0;
if(postvalue("SearchFor")!="" || postvalue("SearchOption")=='Empty') $_SESSION[$strTableName."_search"]=1; else $_SESSION[$strTableName."_search"]=1;
if(@$_SESSION[$strTableName."_search"]==1) // regular search
if(@$_SESSION[$strTableName."_search"]==1 && trim($_SESSION[$strTableName."_searchfor"])=="" && $_SESSION[$strTableName."_searchoption"]!="Empty") $strSQL = AddWhere($strSQL,"1=0"); elseif(@$_SESSION[$strTableName."_search"]==1) // regular search |